LinuxQuestions.org
Share your knowledge at the LQ Wiki.
Home Forums Tutorials Articles Register
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 09-04-2002, 09:13 PM   #1
Nexty
LQ Newbie
 
Registered: Dec 2001
Location: Cubicle
Distribution: Mandrake 8.0
Posts: 9

Rep: Reputation: 0
DNS no worky


I have my server up and running fine but I cant figure out howto make my domain work. I have it registered with namesecure.com and I believe I have all my zone files correct. Below is my /etc/named.conf:




Code Sample



controls {
inet 127.0.0.1 allow { localhost; } keys { rndckey; };
};

include "/etc/rndc.key";

options {
directory "/var/named/";
#allow-query { 192.168.1.0/255; localhost; };
#allow-recursion { 192.168.1.0/255; localhost; };
};

zone "." {
type hint;
file "named.ca";
};

zone "0.0.127.in-addr.arpa" {
type master;
file "0.0.127.in-addr.arpa.zone";
};

zone "1.168.192.in-addr.arpa" {
type master;
allow-query { any; };
file "1.168.192.in-addr.arpa.zone";
};

zone "154.168.66.in-addr.arpa" {
type master;
allow-query { any; };
file "154.168.66.in-addr.arpa.zone";
};

zone "localhost" {
type master;
file "localhost.zone";
};

zone "phneak.com" {
type master;
allow-query { any; };
file "phneak.com.zone";
};



And when I run #dig phneak.com , It seems to work fine:



Code Sample



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

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

;; ANSWER SECTION:
phneak.com. 86400 IN A 66.168.154.41

;; AUTHORITY SECTION:
phneak.com. 86400 IN NS ns.phneak.com.

;; ADDITIONAL SECTION:
ns.phneak.com. 86400 IN A 192.168.1.31

;; Query time: 5 msec
;; SERVER: 127.0.0.1#53(127.0.0.1)
;; WHEN: Tue Sep 3 06:13:49 2002
;; MSG SIZE rcvd: 77



I think I might need a 'slave' server in my named.conf or something because it seems like its not sending the DNS information out to anyone. Thanks,

~nexty
 
Old 09-04-2002, 11:55 PM   #2
rohang
Member
 
Registered: Aug 2002
Location: Sydney, Australia
Distribution: Redhat, Open BSD, SuSe, Debian, CentOS
Posts: 177

Rep: Reputation: 31
I take it that you've got a static IP?

Is your domain delegated?

Are you getting any errors when you start BIND?
 
Old 09-05-2002, 07:12 AM   #3
Nexty
LQ Newbie
 
Registered: Dec 2001
Location: Cubicle
Distribution: Mandrake 8.0
Posts: 9

Original Poster
Rep: Reputation: 0
My IP is dynamic but im on cable ad it only changes like every 3 months or so if that.

Im not sure what you mean by 'delegated'.

And Ive checked my /var/log/messages and there isnt any errors in there. Ive read thru that DNS-HOWTO thing but it still isnt working. Ive got a linksys router and required ports are forwared to my box (53 is DNS right?). So I dunno.
 
Old 09-05-2002, 07:48 PM   #4
rohang
Member
 
Registered: Aug 2002
Location: Sydney, Australia
Distribution: Redhat, Open BSD, SuSe, Debian, CentOS
Posts: 177

Rep: Reputation: 31
By delegated, I'm referring to who's managing it (in this case I assume it's you?)

Did you supply the IP address of your nameserver at the time you registered your domain? If you didn't, even though you might own it, no other name servers are going to know where to go to get the zone file details.
 
Old 09-05-2002, 09:36 PM   #5
Nexty
LQ Newbie
 
Registered: Dec 2001
Location: Cubicle
Distribution: Mandrake 8.0
Posts: 9

Original Poster
Rep: Reputation: 0
If you are reffering to where the 'domain' points to then yeah i have the nameserver for the domain point to my ip (66.168.154.41). I was wondering, do I have to have a zone file for that ip? The external one? I dunno it just seems like its working but its not. Is there someway you could post all of your DNS related files in a zip or something so I can seem if mine is setup different?

~nexty
 
Old 09-06-2002, 11:26 AM   #6
peter_robb
Senior Member
 
Registered: Feb 2002
Location: Szczecin, Poland
Distribution: Gentoo, Debian
Posts: 2,458

Rep: Reputation: 48
When someone looks for the domain 'phneak.com'
your records tell them to interrogate the nameserver ns.phneak.com
which can be found at the address '192.168.1.31'

So my pc will go looking into my LAN for your dns server... Hmmm?

Regards,
Peter.
 
Old 09-06-2002, 12:01 PM   #7
Nexty
LQ Newbie
 
Registered: Dec 2001
Location: Cubicle
Distribution: Mandrake 8.0
Posts: 9

Original Poster
Rep: Reputation: 0
hehehe thanks man. Im at school now but ill try it when I get home. Thanks again,

~nexty
 
  


Reply



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
cfdisk no worky, probably raid problem grassapa Slackware 4 10-21-2003 01:07 PM
Actiontec modem no worky in slackware... andermic Linux - Hardware 7 10-19-2003 04:15 PM
Random screen saver no worky moodles Mandriva 13 09-02-2003 12:32 PM
slack 9 mysql no worky Finlay Slackware 2 08-16-2003 10:22 AM
MikMod no worky :( NightShade737 Linux - Software 0 07-05-2003 08:44 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Networking

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

Main Menu
Advertisement
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
Open Source Consulting | Domain Registration