Home Forums OS X Server and Client Discussion DNS WIld card DNS used to work, no more

Viewing 8 posts - 1 through 8 (of 8 total)
  • Author
    Posts
  • #368882
    bluepolo
    Participant

    Apologies in advance for the possible noob question

    For sometime I’ve used wildcard DNS, basically making the server * in DNS manager. Now though it doesn’t work anymore. I get the following in the log:

    30-Apr-2007 22:37:47.374 dns_rdata_fromtext: sub.domain.com.zone:2: near ‘*.sub.domain.com.’: bad name (check-names).

    I don’t kno exactly when this happened, because this particular requirement was not in use for a month or 2.

    Any ideas?

    TIA

    BP

    #368929
    bluepolo
    Participant

    well I found a way to do it.

    In the A record have a machine of say any.domain.com. Then add an alias ie cname of *.

    Works fine

    #369657
    ToddJob
    Participant

    I try that and it did not work. It root domain points to the dns server only.

    #369662
    bluepolo
    Participant

    Hi, I just tried it and it worked fine.

    1 – create a zone – I called my zone ‘domain.com’

    2 – in the nameserver field I put ‘ns’

    3 – click onto ‘machines’

    4 – doubleclick the entry you find

    5 – click on the + sign next to aliases

    6 – type ‘*’

    7 – click OK and save etc

    When I do nslookup:

    madmax:~ bp$ nslookup ns.domain.com
    Server: 192.168.12.1
    Address: 192.168.12.1#53
    Name: ns.domain.com
    Address: 192.168.12.1

    and

    madmax:~ bp$ nslookup any.domain.com
    Server: 192.168.12.1
    Address: 192.168.12.1#53
    any.domain.com canonical name = ns.domain.com.
    Name: ns.domain.com
    Address: 192.168.12.1

    and

    madmax:~ bp$ nslookup fred.domain.com
    Server: 192.168.12.1
    Address: 192.168.12.1#53

    fred.domain.com canonical name = ns.domain.com.
    Name: ns.domain.com
    Address: 192.168.12.1

    I’m on 10.4.10 right now, and its worked since whenever I made my last post.

    Cheers

    BP

    #369663
    ToddJob
    Participant

    I must correct myself. I am able to get wild cards working, only if I us the DNS server for the wildcard entry. however if use a wild card on any other server (machine) this does not work.

    TK

    #369664
    bluepolo
    Participant

    I did it ll over made the host a diferent IP, and it still works:

    madmax:~ bp$ nslookup ns.domain.com
    Server: 192.168.12.1
    Address: 192.168.12.1#53

    Name: ns.domain.com
    Address: 192.168.12.2

    and

    madmax:~ bp$ nslookup fred.domain.com
    Server: 192.168.12.1
    Address: 192.168.12.1#53

    fred.domain.com canonical name = ns.domain.com.
    Name: ns.domain.com
    Address: 192.168.12.2

    Sorry if I am not understanding correctly!

    #369665
    ToddJob
    Participant

    This works fines using the fred sub domain.

    toddjob:~ todd$ nslookup fred.exampleco.com
    Server: 10.32.32.32
    Address: 10.32.32.32#53

    fred.exampleco.com canonical name = ns.exampleco.com.
    Name: httpserver-02.exampleco.com
    Address: 10.32.32.9

    However, when no sub domain is entered this is the results we have:

    toddjob:~ todd$ nslookup exampleco.com
    Server: 10.32.32.32
    Address: 10.32.32.32#53

    Name: exampleco.com
    Address: 10.32.32.32

    Any ideas?

    *domains and ips have been changed per our security policies.

    #369666
    bluepolo
    Participant

    How did you create your zone?

    Leaving off the sub domain it still works for me

    madmax:~ bp$ nslookup domain.com
    Server: 192.168.12.1
    Address: 192.168.12.1#53

    Name: domain.com
    Address: 192.168.12.2

    If you do exactly what I did, do you get your result or mine?

Viewing 8 posts - 1 through 8 (of 8 total)
  • You must be logged in to reply to this topic.

Comments are closed