Home › Forums › OS X Server and Client Discussion › DNS › WIld card DNS used to work, no more
- This topic has 8 replies, 3 voices, and was last updated 18 years, 10 months ago by
bluepolo.
-
AuthorPosts
-
April 30, 2007 at 10:06 pm #368882
bluepolo
ParticipantApologies 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
May 3, 2007 at 9:58 pm #368929bluepolo
Participantwell 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
August 6, 2007 at 12:56 am #369657ToddJob
ParticipantI try that and it did not work. It root domain points to the dns server only.
August 6, 2007 at 7:22 pm #369662bluepolo
ParticipantHi, 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.1and
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.1and
madmax:~ bp$ nslookup fred.domain.com
Server: 192.168.12.1
Address: 192.168.12.1#53fred.domain.com canonical name = ns.domain.com.
Name: ns.domain.com
Address: 192.168.12.1I’m on 10.4.10 right now, and its worked since whenever I made my last post.
Cheers
BP
August 6, 2007 at 7:39 pm #369663ToddJob
ParticipantI 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
August 6, 2007 at 8:37 pm #369664bluepolo
ParticipantI 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#53Name: ns.domain.com
Address: 192.168.12.2and
madmax:~ bp$ nslookup fred.domain.com
Server: 192.168.12.1
Address: 192.168.12.1#53fred.domain.com canonical name = ns.domain.com.
Name: ns.domain.com
Address: 192.168.12.2Sorry if I am not understanding correctly!
August 6, 2007 at 8:56 pm #369665ToddJob
ParticipantThis works fines using the fred sub domain.
toddjob:~ todd$ nslookup fred.exampleco.com
Server: 10.32.32.32
Address: 10.32.32.32#53fred.exampleco.com canonical name = ns.exampleco.com.
Name: httpserver-02.exampleco.com
Address: 10.32.32.9However, 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#53Name: exampleco.com
Address: 10.32.32.32Any ideas?
*domains and ips have been changed per our security policies.
August 6, 2007 at 9:24 pm #369666bluepolo
ParticipantHow 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#53Name: domain.com
Address: 192.168.12.2If you do exactly what I did, do you get your result or mine?
-
AuthorPosts
- You must be logged in to reply to this topic.
Comments are closed