Welcome to Linux Forums! With a comprehensive Linux Forum, information on various types of Linux software and many Linux Reviews articles, we have all the knowledge you need a click away, or accessible via our knowledgeable members.
Write an article for LinuxForums Today! Win Great Prizes!
Find the answer to your Linux question:
New to Linux Forums? Register here for free!
    Linux Forums > GNU Linux Zone > Linux Networking > Name Server NightMare, Plz HELP!

Forgot Password?
 Linux Networking   Hardware/Software related, Modems, Internet connection sharing, IPTables etc.

Site Navigation
Linux Articles
Linux Forums
Linux Downloads
Linux Hosting
Free Magazines
Job Board
IRC Chat
RSS Feeds
Linux Forum Topics
Linux Forums
Your Distro
Linux Resources
GNU Linux Zone
The Community
Reply
 
Thread Tools Display Modes
Old 03-04-2005   #1 (permalink)
Just Joined!
 
Join Date: Mar 2005
Posts: 6
Name Server NightMare, Plz HELP!

im setting up a DNS for my domains to run on my own apache server. here is my zone file:

$TTL 86400

@ IN SOA mydomain.com. hostmaster.mydomail.com. (
00023
3H
15M
1W
1D
)

; Name Servers
IN NS ns1.mydomain.com.
IN NS ns2.mydomain.com.

; CNAME
www.mydomain.com. IN CNAME www.mydomain.com.

; Public
ns1 IN A 127.0.0.1
ns2 IN A 127.0.0.1
www IN A xx.x.xxx.xxx


well there is the file. now here is the log report:

loading configuration from '/etc/named.conf'
no IPv6 interfaces found
dns_master_load: mydomain.zone:20 www.mydomain.com: CNAME and other data
zone mydomain.com/IN: loading master file mydomain.zone: CNAME and other data

when i try to ping www.mydomain.com it returns this:

Ping: unknown host www.mydomain.com

any advice on this would be very helpfull, im at my witts end with this thing.
eckertc1 is offline  



Reply With Quote
Old 03-04-2005   #2 (permalink)
Linux Enthusiast
 
Join Date: Feb 2005
Location: SE, Stockholm
Posts: 512
Send a message via ICQ to swemic Send a message via MSN to swemic
Ok I made a few changes to your SOA and NS definitions

Code:
$ORIGIN .
$TTL 86400
@ IN SOA mydomain.com. hostmaster.mydomain.com. (
   2005030401
   3H
   15M
   1W
   1D
)

; Name Servers
            NS ns1.mydomain.com.
            NS ns2.mydomain.com.

$ORIGIN mydomain.com.
; Public
ns1      A     nnn.nnn.nnn.nnn     <- Should be yout servers IP
ns2      A     nnn.nnn.nnn.nnn     <-  Should be your servers IP
www    A     xxx.xxx.xxx.xxx
First of all, there is no point of creating a CNAME that is eq to the A record.
But more important, your nameserver can't be 127.0.0.1, how would the rest of the world find you? The IP should be your external IP.

A small suggestion, but it's just my $.05 oppinion, when you set the serial number of your SOA, keep a good numbering system so you really can trouble shoot your config in an easy maner. My principle is that I use the date of today, with a postfix of NN, which would representate the number of changes I made during this day.
Also make shure that you spell everything correctly, otherwise you will end up in trouble.

Finaly, how about your "/etc/named.conf" file?
How have you configured that one?
swemic is offline   Reply With Quote
Old 03-04-2005   #3 (permalink)
Just Joined!
 
Join Date: Mar 2005
Posts: 6
thank you VERY much for your input. im giving this a try right now and well see how it goes
eckertc1 is offline   Reply With Quote
Old 03-04-2005   #4 (permalink)
Just Joined!
 
Join Date: Mar 2005
Posts: 6
ok i tried what was suggested and i got all kinds of out-of-zone errors.
then i removed the $ORIGIN tag and most went away, not sure why. anyway what i am left with is these three things in the log file:

1. no IPv6 interfaces found
2. zone mydomain.com/IN: loaded serial 1
3. zone insomniabox.com/IN: sending notifies (serial 1)

and i still cannot ping www.mydomain.com

any ideas?
eckertc1 is offline   Reply With Quote
Old 03-04-2005   #5 (permalink)
Linux Enthusiast
 
Join Date: Feb 2005
Location: SE, Stockholm
Posts: 512
Send a message via ICQ to swemic Send a message via MSN to swemic
Could you please cut and paste /etc/named.conf and your SOA file here
(usually /var/named/<your-own-file-name-defined-in-named.conf>)
swemic is offline   Reply With Quote
Old 03-05-2005   #6 (permalink)
Just Joined!
 
Join Date: Mar 2005
Posts: 6
sure, here is what i have at present.

(named.conf):

Code:
options {
directory "/var/named"; }

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

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

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

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

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

include "/etc/rndc.key";

and here is the other file
(mydomain.zone)


Code:
$TTL 86400 
$ORIGIN localhost.
@   SOA  mydomain.com. root.mydomain.com. (
 			       420012
				3H
				15M
				1W
				1D
                                      )
                        NS      ns1.mydomain.com.
			 NS      ns2.mydomain.com.
                        A       xxx.xxx.xxx.xxx 
ftp                     CNAME   mydomain.com.
mail                    CNAME   mydomain.com.
ns                      CNAME   mydomain.com.
www                     CNAME   mydomain.com.
eckertc1 is offline   Reply With Quote
Old 03-05-2005   #7 (permalink)
Linux Enthusiast
 
Join Date: Feb 2005
Location: SE, Stockholm
Posts: 512
Send a message via ICQ to swemic Send a message via MSN to swemic
Ok! I did just answer this in another thread.
http://www.linuxforums.org/forum/topic-35928.html
It do looks like you have it wuite correct, but try the changes I suggested in the other thread, and do the testings I suggested as well.

DNS as service is quite a distinct on how it works.
If your domain is not configured in Root DNS servers, you shall/should keep your domain as a local domain, and all client should point to your DNS server only!
swemic is offline   Reply With Quote
Reply


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools
Display Modes

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 On
HTML code is Off
Trackbacks are Off
Pingbacks are Off
Refbacks are Off

Free Magazines
A Newbie's Getting Started Guide to Linux
Learn the basics of the Linux operating systems. Get to know what it is all about, and familiarize yourself with the practical side. Basically, if you're a complete Linux newbie and looking for a quick and easy guide to get you started this is it.
subscribe
Run Your Own Web Server Using Linux & Apache - Free 191 Page Preview
Learn about everything you'll need to build and maintain your Linux servers, and to deploy Web applications to them.
subscribe
Open Source Security Myths Dispelled
Dispel the five major myths surrounding Open Source Security and gain the tools necessary to make a truly informed decision for your IT organization
subscribe
InformationWeek
InformationWeek is the only newsweekly you'll need to stay on top of the latest developments in information technology.
subscribe



All times are GMT. The time now is 09:51 AM.






© 2000 - - All Rights Reserved - Property of  MAS Media

Content Relevant URLs by vBSEO 3.3.1