LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Networking (https://www.linuxquestions.org/questions/linux-networking-3/)
-   -   BIND: wildcard DNS and nameserver (https://www.linuxquestions.org/questions/linux-networking-3/bind-wildcard-dns-and-nameserver-100578/)

noisybastard 10-05-2003 04:13 PM

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/kitsapbands.zone
$TTL 43200
@ IN SOA ns1.kitsapbands.com. postmaster.kitsapbands.com. (
2000032701 ; Serial
300 ; Refresh - 5 Minutes
60 ; Retry - 1 minute
1209600 ; Expire - 2 Weeks
43200) ; Minimum - 12 Hours
IN NS ns1.kitsapbands.com.
IN MX 10 mail.kitsapbands.com.
IN A 64.113.1.119
www IN A 64.113.1.119
mail IN A 64.113.1.119
ns IN A 64.113.1.119
ftp IN CNAME wwww.kitsapbands.com.
;EOF

Do I just need to add "* IN A 64.113.1.119" 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 kitsapbands.com

; <<>> DiG 9.2.1 <<>> kitsapbands.com
;; 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

;; QUESTION SECTION:
;kitsapbands.com. IN A

;; ANSWER SECTION:
kitsapbands.com. 43200 IN A 64.113.1.119

;; AUTHORITY SECTION:
kitsapbands.com. 43200 IN NS ns1.kitsapbands.com.

;; Query time: 2 msec
;; SERVER: 64.113.0.1#53(64.113.0.1)
;; WHEN: Sun Oct 5 13:56:15 2003
;; MSG SIZE rcvd: 67



[*@*]# dig digitsu.net

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

;; QUESTION SECTION:
;digitsu.net. IN A

;; Query time: 2 msec
;; SERVER: 64.113.0.1#53(64.113.0.1)
;; 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: digitsu.net 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)


All times are GMT -5. The time now is 06:38 PM.