[SuSE Linux] Configuring named
![](https://seccdn.libravatar.org/avatar/01e93b0a6c15cbceb9e80bfd5a311617.jpg?s=120&d=mm&r=g)
I am on SuSE 5.2 and I need to configure name service to establish a couple of local host names on my network even though I have only a dial-up connection to the Internet. The SuSE bind package requires almost no configuration. Basically you just tell YaST that you want it, hang 127.0.0.1 in the IP address and your system host name, take the automatic SuSEConfig and start using it. But now my local host names--how closely can I follow the DNS HOWTO? I see a couple of immediate variances: no /etc/named.conf and /var/named/root.cache appears to serve the same function as /var/named/root.hints. What I need is actually *just one* additional local host name so Netscape will see it and not go looking for it on the Internet. Can anyone help me with that? Thanks, Dwight - To get out of this list, please send email to majordomo@suse.com with this text in its body: unsubscribe suse-linux-e
![](https://seccdn.libravatar.org/avatar/66a67f275cc10cdedf40d1b2e941f0f6.jpg?s=120&d=mm&r=g)
have ou considered just using the /etc/hosts file? or do you need a non-unixlike OS to be able to make queries? On Sat, 5 Sep 1998, Dwight Johnson wrote:
I am on SuSE 5.2 and I need to configure name service to establish a couple of local host names on my network even though I have only a dial-up connection to the Internet.
The SuSE bind package requires almost no configuration. Basically you just tell YaST that you want it, hang 127.0.0.1 in the IP address and your system host name, take the automatic SuSEConfig and start using it.
But now my local host names--how closely can I follow the DNS HOWTO?
I see a couple of immediate variances: no /etc/named.conf and /var/named/root.cache appears to serve the same function as /var/named/root.hints.
What I need is actually *just one* additional local host name so Netscape will see it and not go looking for it on the Internet.
Can anyone help me with that?
Thanks, Dwight
- To get out of this list, please send email to majordomo@suse.com with this text in its body: unsubscribe suse-linux-e
- To get out of this list, please send email to majordomo@suse.com with this text in its body: unsubscribe suse-linux-e
![](https://seccdn.libravatar.org/avatar/01e93b0a6c15cbceb9e80bfd5a311617.jpg?s=120&d=mm&r=g)
On Sat, 5 Sep 1998, zens wrote:
have ou considered just using the /etc/hosts file? or do you need a non-unixlike OS to be able to make queries?
On Sat, 5 Sep 1998, Dwight Johnson wrote:
I am on SuSE 5.2 and I need to configure name service to establish a couple of local host names on my network even though I have only a dial-up connection to the Internet.
What I need is actually *just one* additional local host name so Netscape will see it and not go looking for it on the Internet.
Here is my attempt to use /etc/hosts: /etc/hosts 127.0.0.1 localhost 192.168.1.1 runner.aaronsrod.com runner 192.168.1.1 slash.aaronsrod.com slash ---------- /etc/resolv.conf search runner.aaronsrod.com #olypen nameservers nameserver 208.200.248.1 nameserver 208.200.251.97 ---------- /etc/httpd/httpd.conf NameVirtualHost 192.168.1.1 <VirtualHost 192.168.1.1> ServerAdmin dwj@runner DocumentRoot /usr/local/httpd/htdocs ServerName runner ErrorLog /var/log/runner-error_log TransferLog /var/log/runner-access_log </VirtualHost> <VirtualHost 192.168.1.1> ServerAdmin dwj@runner DocumentRoot /home/slash/public_html ServerName www.slash.aaronsrod.com ErrorLog /home/slash/logs/slash-error_log TransferLog /home/slash/logs/slash-access_log </VirtualHost> ---------- When I try to access <A HREF="http://slash.aaronsrod.com"><A HREF="http://slash.aaronsrod.com</A">http://slash.aaronsrod.com</A</A>> in Netscape, it just goes to /usr/local/httpd/htdocs instead of to /home/slash/public_html. What is the correct way to set up the /etc/hosts approach? Thanks, Dwight - To get out of this list, please send email to majordomo@suse.com with this text in its body: unsubscribe suse-linux-e
![](https://seccdn.libravatar.org/avatar/01e93b0a6c15cbceb9e80bfd5a311617.jpg?s=120&d=mm&r=g)
On Sat, 5 Sep 1998, Dwight Johnson wrote: OK, got this to work by adding 'www.slash.aaronsrod.com' in /etc/hosts to get the line: 192.168.1.1 slash.aaronsrod.com www.slash.aaronsrod.com slash o now my Apache virtual hosting is working on <A HREF="http://localhost"><A HREF="http://localhost</A">http://localhost</A</A>> <A HREF="http://www.slash.aaronsrod.com"><A HREF="http://www.slash.aaronsrod.com</A">http://www.slash.aaronsrod.com</A</A>> both keyed to 192.168.1.1. I only wish my troubles were over! Now some (but not all!) of the CGI is broken :-( Thanks to those who answered my post. Dwight
On Sat, 5 Sep 1998, zens wrote:
have ou considered just using the /etc/hosts file? or do you need a non-unixlike OS to be able to make queries?
On Sat, 5 Sep 1998, Dwight Johnson wrote:
I am on SuSE 5.2 and I need to configure name service to establish a couple of local host names on my network even though I have only a dial-up connection to the Internet.
What I need is actually *just one* additional local host name so Netscape will see it and not go looking for it on the Internet.
Here is my attempt to use /etc/hosts:
/etc/hosts 127.0.0.1 localhost 192.168.1.1 runner.aaronsrod.com runner 192.168.1.1 slash.aaronsrod.com slash ----------
/etc/resolv.conf search runner.aaronsrod.com #olypen nameservers nameserver 208.200.248.1 nameserver 208.200.251.97 ----------
/etc/httpd/httpd.conf NameVirtualHost 192.168.1.1
<VirtualHost 192.168.1.1> ServerAdmin dwj@runner DocumentRoot /usr/local/httpd/htdocs ServerName runner ErrorLog /var/log/runner-error_log TransferLog /var/log/runner-access_log </VirtualHost>
<VirtualHost 192.168.1.1> ServerAdmin dwj@runner DocumentRoot /home/slash/public_html ServerName www.slash.aaronsrod.com ErrorLog /home/slash/logs/slash-error_log TransferLog /home/slash/logs/slash-access_log </VirtualHost> ----------
When I try to access <A HREF="http://slash.aaronsrod.com"><A HREF="http://slash.aaronsrod.com</A">http://slash.aaronsrod.com</A</A>> in Netscape, it just goes to /usr/local/httpd/htdocs instead of to /home/slash/public_html.
What is the correct way to set up the /etc/hosts approach?
Thanks, Dwight
- To get out of this list, please send email to majordomo@suse.com with this text in its body: unsubscribe suse-linux-e
- To get out of this list, please send email to majordomo@suse.com with this text in its body: unsubscribe suse-linux-e
![](https://seccdn.libravatar.org/avatar/66a67f275cc10cdedf40d1b2e941f0f6.jpg?s=120&d=mm&r=g)
again, do you need a non-unixlike host to be able to access these machines by their given names? of not, the /etc/hosts file would be quite sufficent ie: 127.0.0.1 localhost 192.168.0.2 foo.localnet foo 192.168.0.3 blah.localnet blah 205.253.202.11 myfoo.myisp.com myfoo 205.253.202.12 myblah.myisp.com myblah assuming this was on machine foo, and you wished to connect to blah, you would only need to type <A HREF="http://blah/~uzer"><A HREF="http://blah/~uzer</A">http://blah/~uzer</A</A>> yadda yadda, by default domain queries get sent to the hosts files, then the resolv.conf is used... On Sat, 5 Sep 1998, Dwight Johnson wrote:
have ou considered just using the /etc/hosts file? or do you need a non-unixlike OS to be able to make queries?
On Sat, 5 Sep 1998, Dwight Johnson wrote:
I am on SuSE 5.2 and I need to configure name service to establish a couple of local host names on my network even though I have only a dial-up connection to the Internet.
What I need is actually *just one* additional local host name so Netscape will see it and not go looking for it on the Internet.
Here is my attempt to use /etc/hosts:
/etc/hosts 127.0.0.1 localhost 192.168.1.1 runner.aaronsrod.com runner 192.168.1.1 slash.aaronsrod.com slash ----------
/etc/resolv.conf search runner.aaronsrod.com #olypen nameservers nameserver 208.200.248.1 nameserver 208.200.251.97 ----------
/etc/httpd/httpd.conf NameVirtualHost 192.168.1.1
<VirtualHost 192.168.1.1> ServerAdmin dwj@runner DocumentRoot /usr/local/httpd/htdocs ServerName runner ErrorLog /var/log/runner-error_log TransferLog /var/log/runner-access_log </VirtualHost>
<VirtualHost 192.168.1.1> ServerAdmin dwj@runner DocumentRoot /home/slash/public_html ServerName www.slash.aaronsrod.com ErrorLog /home/slash/logs/slash-error_log TransferLog /home/slash/logs/slash-access_log </VirtualHost> ----------
When I try to access <A HREF="http://slash.aaronsrod.com"><A HREF="http://slash.aaronsrod.com</A">http://slash.aaronsrod.com</A</A>> in Netscape, it just goes to /usr/local/httpd/htdocs instead of to /home/slash/public_html.
What is the correct way to set up the /etc/hosts approach?
Thanks, Dwight
- To get out of this list, please send email to majordomo@suse.com with this text in its body: unsubscribe suse-linux-e
- To get out of this list, please send email to majordomo@suse.com with this text in its body: unsubscribe suse-linux-e
![](https://seccdn.libravatar.org/avatar/01e93b0a6c15cbceb9e80bfd5a311617.jpg?s=120&d=mm&r=g)
On Sun, 6 Sep 1998, zens wrote:
again, do you need a non-unixlike host to be able to access these machines by their given names? of not, the /etc/hosts file would be quite sufficent
Yes, you are right. I have it working in /etc/hosts now. Turns out I don't even need a local name server. Like so many things on Linux, until you understand it, it's a big obstacle. Once you understand it, it's trivial. Thanks for your help. Dwight - To get out of this list, please send email to majordomo@suse.com with this text in its body: unsubscribe suse-linux-e
![](https://seccdn.libravatar.org/avatar/775262b5c270765b34cd06ca781a5ab5.jpg?s=120&d=mm&r=g)
On Sat, 5 Sep 1998, Dwight Johnson wrote:
But now my local host names--how closely can I follow the DNS HOWTO?
Pretty closely if you want to learn how a dns server is setup ;)
I see a couple of immediate variances: no /etc/named.conf and
/etc/named.conf is the Bind 8.*.* version of the /etc/named.boot file used in earlier releases of Bind. It does much the same thing, but uses a very different (new and improved) syntax.
/var/named/root.cache appears to serve the same function as /var/named/root.hints.
You can name the data files anything you want. The "hints" file loads the "." domain. This is a necessary part of most all nameservers (there are exceptions). Look at the 'directory' directive in your /etc/named.boot or /etc/named.conf. It will tell you (or allow you to configure) the location of your zone (data) files that you wish to load into your dns server. There should be one for every domain which you wish to load into your dns. To add another primary zone, you will add another 'primary' line to your /etc/named.boot: primary domain.com domain.db .. or master zone to your /etc/named.conf (if Bind 8.*.*) : zone "domain.com" { type master; file "domain.db"; }; ... where "domain.com" is the domain's dns which you wish to load, and "domain.db" is the zone file that contains that domain's dns information. You would then have to create that zone file and place it in the /var/named directory (or wherever you've listed in the 'directory' directive of your boot file).
What I need is actually *just one* additional local host name so Netscape will see it and not go looking for it on the Internet.
Sounds like the /etc/hosts file (as Zens suggested) might be your best bet. The dns way gets complicated if there are other hosts that live in that particular dns domain. You will have to have data for all hosts in that domain or your nameserver will answer authoritatively that the host does not exist. For example, you try to go to <A HREF="http://host1.domain.com"><A HREF="http://host1.domain.com</A">http://host1.domain.com</A</A>> in your browser. You've loaded 'domain.com' into your nameserver and it contains one A (address) record for host1, so you get to host1.domain.com in your web browser. But, there are other machines that also live in the domain.com domain that another nameserver loads. Your machine will see host1.domain.com, but will not see host2, host3, or host4 that the other dns server has loaded. Of course, the results would be exactly opposite if your /etc/resolve.conf points at your isp's nameserver instead of at 127.0.0.1 (your local machine) first.
Can anyone help me with that?
Yep. You're welcome to email me offline. Jim Fischer Altavista Software Compaq
Thanks, Dwight
- To get out of this list, please send email to majordomo@suse.com with this text in its body: unsubscribe suse-linux-e
- To get out of this list, please send email to majordomo@suse.com with this text in its body: unsubscribe suse-linux-e
participants (3)
-
dwj@aaronsrod.com
-
jfischer@sneezy.altavista-software.com
-
zen@toyzworkz.com