LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Networking
User Name
Password
Linux - Networking This forum is for any issue related to networks or networking.
Routing, network cards, OSI, etc. Anything is fair game.

Notices

Reply
 
Search this Thread
Old 10-05-2003, 04:13 PM   #1
noisybastard
Member
 
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/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)
 
  


Reply


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 11:19 PM.

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