Koozali.org: home of the SME Server

DNS Problem

John Halla

DNS Problem
« on: August 02, 2000, 08:56:41 PM »
Hi Everyone !!

I have been running e-smith 3.1 for 3 months now, I've set it up to run as a web server (wanted to host my own page), but I've run into a problem when my secondary DNS's IP changed, so I updated my named files, and restarted the named subsystem, but now it doesn't work at all.

I've noticed that the named subsystem is running with the -f flag instead of in daemon mode, is this a problem ???, if it is how do I kill the process, I've tried to shut it down but it keeps spawning a new one, I've tried to kill it to and it keeps spawning more.


thanx

John

John Halla

RE: DNS Problem
« Reply #1 on: August 04, 2000, 08:47:31 PM »
Hey there !!

I got it working.....Yea.

I noticed some other people asking about serving their own web page, here is what I did to get it working

1. goto linuxdoc.org and get the DNS howto (this is where I found most of the information)

2. Go and get a hostname from network solutions or someone else

3. You have to modify or create a number of files:

modify the named.conf (main configuration file for named)
modify the resolv.conf (put your ISP's DNS servers in this file)
create the yourdomainname.com (your domainname information)
create your_ip_reversed.in-addr-arpa (this file is used as a reverse lookup)

4. Follow the Howto exactly, with all dots and everything, it's quite tricky for newbies like me

5. Restart your named session by typing in ndc restart

6. Check it all over again because you missed something and it doesn't work

One note e-smith is setup up with a caching only name server, so what you have to do it add an entry in your named.conf file to tell it to listen on your external ip address as well.  (your internal addresses are defined)  --> thats the one that I coundn't figure out.

If you have any more questions I'll be happy to try and help, but I'm still learning.

John

Charlie Brady

RE: DNS Problem
« Reply #2 on: August 04, 2000, 09:09:27 PM »
John Halla wrote:

> I've noticed that the named subsystem is running with the -f
> flag instead of in daemon mode, is this a problem ???, if it is
> how do I kill the process, I've tried to shut it down but it
> keeps spawning a new one, I've tried to kill it to and it keeps
> spawning more.

If you kill it and it spawns a new one, then you have succeeded in restarting named, which seems to have been your intention.

Charlie

Gordon Rowell

RE: DNS Problem
« Reply #3 on: August 04, 2000, 09:13:35 PM »
John Halla wrote:

> [...]
> 4. Follow the Howto exactly, with all dots and everything, it's
> quite tricky for newbies like me
> [...]

Or better yet, use a tool.

http://www.dns.net/dnsrd

You  should also look at the templates in /etc/e-smith/templates/var/named as another example of a tool to generate DNS.

Gordon

Charlie Brady

Caution advised (RE: DNS Problem)
« Reply #4 on: August 04, 2000, 09:14:27 PM »
John Halla wrote:

> 3. You have to modify or create a number of files:
>
> modify the named.conf (main configuration file for named)

Please read http://www.e-smith.org/custom/ - the e-smith server uses a template system for configuration files, and any changes you make to the active configuration files will be lost when the templates are re-expanded.

> modify the resolv.conf (put your ISP's DNS servers in this
> file)

You certainly don't want to do that - processes on your server should query the local name server.

Your posting starts with comments about serving your own web pages - the e-smith server does this quite well without any modifications at all.

Regards

Charlie