LinuxQuestions.org
Visit Jeremy's Blog.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.

Notices

Reply
 
Search this Thread
Old 08-28-2003, 11:15 AM   #1
Flawless
Member
 
Registered: Feb 2003
Location: alabama
Posts: 45

Rep: Reputation: 15
try to make a DNS server


Hi well im running into problems making a DNS server. I am trying to run 2 domains off 1 ip, well i duno where my problem is. But here is my config files.
---------------
named.conf
---------------

options {
directory "/var/named";
query-source address * port 53;
};

//
// a caching only nameserver config
//
zone "." IN {
type hint;
file "named.ca";
};

zone "localhost" IN {
type master;
file "localhost.zone";
allow-update { none; };
};

zone "0.0.127.in-addr.arpa" IN {
type master;
file "named.local";
allow-update { none; };
};

zone "dilluted.org" {
type master;
file "dilluted.org";
};
{


---------------
dilluted.org
---------------

$ttl 38400
dilluted.org. IN SOA ns.dilluted.org. oosupermanoo@cableone.net. (
1027094177
10800
3600
604800
38400 )

dilluted.org. IN NS ns.dilluted.org.
dilluted.org. IN A my ip


www.dilluted.org. IN A my ip
ftp.dilluted.org. IN A my ip
www.infliction.net. IN A my ip

i have the rest of the files also if you need to see those. NS. DILLUTD.ORG works but when you go to either dilluted.org or infliction.net neither one of them work. I have also set up the VHOST in Apache. Thank you.
Flaw1EsS

Last edited by Flawless; 08-28-2003 at 11:16 AM.
 
Old 08-28-2003, 02:47 PM   #2
Mara
Moderator
 
Registered: Feb 2002
Location: Grenoble
Distribution: Debian
Posts: 9,537

Rep: Reputation: 149Reputation: 149
My example zone file:
Quote:
$TTL 3D
@ IN SOA mydomain. hostmaster.mydomain. (
200207181 ; serial, todays date + todays serial #
8H ; refresh, seconds
2H ; retry, seconds
4W ; expire, seconds
1D ) ; minimum, seconds
;
NS ns ; Inet Address of name server
MX 10 mail.mydomain. ; Primary Mail Exchanger
;
localhost A 127.0.0.1
mydomain. A xxx.xxx.xxx.xxx
ns CNAME mydomain.
mail CNAME mydomain.
www CNAME mydomain.
ftp CNAME mydomain.
For your second domain you need another entry in named.conf and new zone file (can be exactly the same as the first one, with only a different domain).

Last edited by Mara; 08-30-2003 at 05:16 PM.
 
Old 08-29-2003, 11:32 AM   #3
Flawless
Member
 
Registered: Feb 2003
Location: alabama
Posts: 45

Original Poster
Rep: Reputation: 15

Aug 29 11:32:39 expo named[523]: loading configuration from '/etc/named.conf'
Aug 29 11:32:39 expo named[523]: no IPv6 interfaces found
Aug 29 11:32:41 expo named[4323]: starting BIND 9.2.2
Aug 29 11:32:41 expo named[4323]: using 1 CPU
Aug 29 11:32:41 expo named[4323]: loading configuration from '/etc/named.conf'
Aug 29 11:32:41 expo named[4323]: no IPv6 interfaces found
Aug 29 11:32:41 expo named[4323]: listening on IPv4 interface lo, 127.0.0.1#53
Aug 29 11:32:41 expo named[4323]: listening on IPv4 interface eth0, 192.168.0.5#
53
Aug 29 11:32:41 expo named[4323]: couldn't add command channel 127.0.0.1#953: ad
dress in use
Aug 29 11:32:41 expo named[4323]: zone 0.0.127.in-addr.arpa/IN: loaded serial 19
97022700
Aug 29 11:32:41 expo named[4323]: zone localhost/IN: loaded serial 42
Aug 29 11:32:41 expo named[4323]: running

this is in the message log but it still not working....?
 
Old 08-30-2003, 05:17 PM   #4
Mara
Moderator
 
Registered: Feb 2002
Location: Grenoble
Distribution: Debian
Posts: 9,537

Rep: Reputation: 149Reputation: 149
What happens when you try to run 'dig yourdomain' at your DNS server machine?
 
Old 08-30-2003, 11:21 PM   #5
Flawless
Member
 
Registered: Feb 2003
Location: alabama
Posts: 45

Original Poster
Rep: Reputation: 15
root@expo:/var/named# dig dilluted.org

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

;; QUESTION SECTION:
;dilluted.org. IN A

;; ANSWER SECTION:
dilluted.org. 38400 IN A 24.117.62.255

;; AUTHORITY SECTION:
dilluted.org. 38400 IN NS ns.dilluted.org.

;; Query time: 2 msec
;; SERVER: 127.0.0.1#53(127.0.0.1)
;; WHEN: Sat Aug 30 23:24:07 2003
;; MSG SIZE rcvd: 63
 
Old 08-31-2003, 03:05 PM   #6
Mara
Moderator
 
Registered: Feb 2002
Location: Grenoble
Distribution: Debian
Posts: 9,537

Rep: Reputation: 149Reputation: 149
It looks that it works. To ask your own server use 'dig @localhost yourdomain' (from server). Try also with something like 'ns.yourdomain', ftp.yourdomain (if you have it in the zone file). The answers should be similar - have data in 'ANSWER' section.
 
Old 09-02-2003, 12:50 PM   #7
Flawless
Member
 
Registered: Feb 2003
Location: alabama
Posts: 45

Original Poster
Rep: Reputation: 15
; <<>> DiG 9.2.2 <<>> dilluted.org @localhost
;; global options: printcmd
;; Got answer:
;; ->>HEADER<<- opcode: QUERY, status: NOERROR, id: 6579
;; flags: qr aa rd ra; QUERY: 1, ANSWER: 1, AUTHORITY: 1, ADDITIONAL: 0

;; QUESTION SECTION:
;dilluted.org. IN A

;; ANSWER SECTION:
dilluted.org. 38400 IN A 24.117.62.255

;; AUTHORITY SECTION:
dilluted.org. 38400 IN NS ns.dilluted.org.

;; Query time: 103 msec
;; SERVER: 127.0.0.1#53(localhost)
;; WHEN: Tue Sep 2 12:52:32 2003
;; MSG SIZE rcvd: 63
 
Old 09-03-2003, 03:01 PM   #8
Mara
Moderator
 
Registered: Feb 2002
Location: Grenoble
Distribution: Debian
Posts: 9,537

Rep: Reputation: 149Reputation: 149
It all looks correctly. Everything should work now. Does it?
 
Old 09-03-2003, 04:22 PM   #9
Flawless
Member
 
Registered: Feb 2003
Location: alabama
Posts: 45

Original Poster
Rep: Reputation: 15
no i think it could be with the registrar....i think it has to be because everything is configured correctly on my box. Could you think of anything else?
 
Old 09-04-2003, 04:17 PM   #10
Mara
Moderator
 
Registered: Feb 2002
Location: Grenoble
Distribution: Debian
Posts: 9,537

Rep: Reputation: 149Reputation: 149
Probably registration problems. Try one thing: set your DNS Ip as one of your machines' primary DNS. Everything should work nicely. If it does, ask your registrar.
 
  


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
help needed to setup a DNS server can anyone say how to configure a DNS server subha Linux - Networking 4 04-27-2012 11:50 PM
Do I leave primary and seconday DNS blank for a DNS Server? imsam Linux - Networking 3 10-25-2004 01:48 PM
need help to set up caching only dns server to with bogus DNS entries ullas Linux - Networking 1 10-28-2003 01:54 PM
redhat-config-bind <--- is this the prog that can make my RH8 a DNS server? ...... kublador Linux - Networking 5 04-03-2003 09:47 PM
How do you make the ip masquerade server/dhcp server broadcast dns to lan cmisip Linux - Networking 6 01-25-2003 10:43 PM


All times are GMT -5. The time now is 06:25 AM.

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