+ Reply to Thread
Results 1 to 3 of 3

HELP: DNS Protocol | Text Formulas in Excel

  1. #1
    Registered User
    Join Date
    06-17-2012
    Location
    New york, USA
    MS-Off Ver
    Excel 2007
    Posts
    1

    HELP: DNS Protocol | Text Formulas in Excel

    Hello Everyone,

    I have a project to write SNORT IDS Rules. The end result is to provide the DNS syntax for any given domain name.

    Example:

    www.excelforum.com would be represented as |3|www|10|excelforum|3|com



    1. A common delimeter is the same, a period "." in this case
    2. Because any domain name is different, the number of characters of each area are separated by the period "."

    I tried to use FIND, REPLACE, MID, CONCATENATE but I am lost. I can't seem to figure out how to make this work efficiently once I would provide the domain name in once cell and have my desired DNS result provided on another cell.

    How can I approach this efficiently and effectively?

    Thank you

  2. #2
    Forum Guru TMS's Avatar
    Join Date
    07-15-2010
    Location
    The Great City of Manchester, NW England ;-)
    MS-Off Ver
    MSO 2007,2010,365
    Posts
    48,359

    Re: HELP: DNS Protocol | Text Formulas in Excel

    Do you have a sample workbook with examples of the things you want to convert?

    I'm guessing they're not all going to be that straightforward.


    Regards, TMS
    Trevor Shuttleworth - Retired Excel/VBA Consultant

    I dream of a better world where chickens can cross the road without having their motives questioned

    'Being unapologetic means never having to say you're sorry' John Cooper Clarke


  3. #3
    Forum Expert shg's Avatar
    Join Date
    06-20-2007
    Location
    The Great State of Texas
    MS-Off Ver
    2010, 2019
    Posts
    40,689

    Re: HELP: DNS Protocol | Text Formulas in Excel

    Easy enough with a UDF:

    Please Login or Register  to view this content.
    Please Login or Register  to view this content.
    Entia non sunt multiplicanda sine necessitate

+ Reply to Thread

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts

Search Engine Friendly URLs by vBSEO 3.6.0 RC 1