Re: [opensuse] bind help



John Andersen wrote:
I've set up a minimal bind installation using yast on 10.2 which seems to
do the job quite well for DNS servicing my local network.

Now I want to add a host name, two actually, 1) to resolve to a specific
public IP in another city, and one to point to an internal machine on
my network.

In the past, putting these in the hosts file of the server running bind would
work, but this seems broken in my setup.

The resolution is set up through /etc/nsswitch.conf. If you use "files" in
addition to dns, then you should be able to use your hosts file for dns
resolution.

# Legal entries are:
#
# compat Use compatibility setup
# nisplus Use NIS+ (NIS version 3)
# nis Use NIS (NIS version 2), also called YP
# dns Use DNS (Domain Name Service)
# files Use the local files
# [NOTFOUND=return] Stop searching if not found so far
#
# For more information, please read the nsswitch.conf.5 manual page.
#

hosts: files dns
networks: files dns

--
Sandy

List replies only please!
Please address PMs to: news-reply2 (@) japantest (.) homelinux (.) com
--
To unsubscribe, e-mail: opensuse+unsubscribe@xxxxxxxxxxxx
For additional commands, e-mail: opensuse+help@xxxxxxxxxxxx



Relevant Pages

  • Re: PHP Runs In WinXP Command Window But Not In Browser
    ... to change the DNS once it is assigned. ... : ServerName, in httpd.conf, is localhost:80. ... When you say I can use the hosts file ...
    (comp.lang.php)
  • Re: PHP Runs In WinXP Command Window But Not In Browser
    ... to change the DNS once it is assigned. ... : ServerName, in httpd.conf, is localhost:80. ... When you say I can use the hosts file ...
    (comp.lang.php)
  • Re: IPv6 and DNS
    ... hosts file which I then have to copy around a dozen machines (and ... static addresses make DNS servers redundant on most private networks. ... But them my motivation is not to increase the workload for the network ... IPv6 address. ...
    (Debian-User)
  • Re: IPv6 and DNS
    ... hosts file which I then have to copy around a dozen machines (and ... I can think of a number of large networks that don't run internal DNS ... But them my motivation is not to increase the workload for the network ... IPv6 address. ...
    (Debian-User)
  • Re: [opensuse] bind help
    ... do the job quite well for DNS servicing my local network. ... putting these in the hosts file of the server running bind ...
    (SuSE)