Help answer threads with 0 replies.
Go Back > Forums > Linux Forums > Linux - Networking
User Name
Linux - Networking This forum is for any issue related to networks or networking.
Routing, network cards, OSI, etc. Anything is fair game.


Search this Thread
Old 10-05-2003, 04:13 PM   #1
Registered: May 2003
Distribution: RedHat 9
Posts: 32

Rep: Reputation: 15
BIND: wildcard DNS and nameserver

this is a 3 part question.

1) how do I get wildcard dns working? I thought I had my zone file set up right to do this, but it never works. here's one of my bind zones:

(sorry if the formatting messed it up)
;Begin of file /var/named/
$TTL 43200
@ IN SOA (
2000032701 ; Serial
300 ; Refresh - 5 Minutes
60 ; Retry - 1 minute
1209600 ; Expire - 2 Weeks
43200) ; Minimum - 12 Hours
IN MX 10
www IN A
mail IN A
ns IN A

Do I just need to add "* IN A" somewhere?

2) is it possible to have BIND accept any domain name that points to it (ie: no need to set up a zone file every friggen time) and just have every domain that points to it point to the server it's on (my name server is my main server right now). I'm sure there must be some security risks involved in doing something like this if it is possible.

3) I thought I had my server set up as the master name server (at least for my server), but every time I run dig it tries to get to the first server on the subnet. The main server on the subnet has my zone file for one site, but not the other, so I'm getting trouble like this:

[*@*]# dig

; <<>> DiG 9.2.1 <<>>
;; global options: printcmd
;; Got answer:
;; ->>HEADER<<- opcode: QUERY, status: NOERROR, id: 17036
;; flags: qr aa rd ra; QUERY: 1, ANSWER: 1, AUTHORITY: 1, ADDITIONAL: 0

; IN A



;; Query time: 2 msec
;; WHEN: Sun Oct 5 13:56:15 2003
;; MSG SIZE rcvd: 67

[*@*]# dig

; <<>> DiG 9.2.1 <<>>
;; global options: printcmd
;; Got answer:
;; ->>HEADER<<- opcode: QUERY, status: SERVFAIL, id: 12302
;; flags: qr rd ra; QUERY: 1, ANSWER: 0, AUTHORITY: 0, ADDITIONAL: 0

; IN A

;; Query time: 2 msec
;; WHEN: Sun Oct 5 13:56:19 2003
;; MSG SIZE rcvd: 29

Both zone files for the sites are almost the same, but the second one isn't being found (probably because it's not checking my server for it). The site still resolves from the outside (ie: can still be accessed just fine by name), but when I try to send out mail from that domain it says it doesn't exist (I assume because of this problem found with dig).

HELP! (sorry to squish all these questions into one post, but I thought it better then having 3 posts about BIND)


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off

Similar Threads
Thread Thread Starter Forum Replies Last Post
How to setup wildcard DNS RAHUKUMAR Linux - Software 3 11-23-2005 01:02 PM
Wildcard Entry and Regular Entries in DNS mr_fern Linux - Networking 0 08-06-2005 08:30 AM
Not connecting to my DNS nameserver krisprasad Linux - Networking 3 10-30-2004 08:18 AM
BT Broadband DNS Nameserver Jaymac Linux - Networking 2 05-28-2004 09:36 AM
Gentoo DNS(nameserver)! Xerop Linux - Networking 3 05-20-2004 06:47 AM

All times are GMT -5. The time now is 03:58 PM.

Main Menu
Write for LQ is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration