Locally-defined host names won't resolve

From: Jim (none_at_example.com)
Date: 06/14/05

  • Next message: Tim: "Re: Locally-defined host names won't resolve"
    Date: Mon, 13 Jun 2005 21:40:26 -0500
    
    

    I have a system running Fedora Core 3, not running as a nameserver.
    My domain is "example.com" (for the purposes of my question).

    # echo $HOSTNAME
    host.example.com
    #

    /etc/hosts:

      127.0.0.1 localhost localhost.localdomain
      192.168.1.10 a.example.com a

    /etc/host.conf:

      order hosts, bind
      multi on

    /etc/resolv.conf:

      search host.example.com example.com
      nameserver [one of my ISP's nameservers]
      nameserver [another of my ISP's nameservers]

    /etc/nsswitch.com [relevant line]

      hosts: files dns

    I restart the network (/etc/rc.d/init.d/network restart)

    Now, when I use the "host" command

    # host a

    or

    # host a.example.com

    I get "host a not found: 3(NXDOMAIN)". Shouldn't it return
    "192.168.1.10"? Using host for external host names works fine; e.g.,

    # host www.mci.com

    returns "www.mci.com has address 198.4.5.227".

    What am I missing?

    Thanks,
    Jim


  • Next message: Tim: "Re: Locally-defined host names won't resolve"

    Relevant Pages

    • Re: Newbie to Exchange needs MX record info
      ... As I undersand it now you can give your mail server any name (in the MX ... > tektoneco.net nameserver = park10.secureserver.net ... > for the responsible host. ... I took the cname records out for mail and set my mx ...
      (microsoft.public.exchange.setup)
    • Locally-defined host names wont resolve
      ... I have a system running Fedora Core 3, not running as a nameserver. ... # echo $HOSTNAME ... when I use the "host" command ...
      (alt.os.linux.redhat)
    • Re: Newbie to Exchange needs MX record info
      ... Although since it's RFC defined, they do have some structure in it to ... > As I undersand it now you can give your mail server any name (in the MX ... >> tektoneco.net nameserver = park10.secureserver.net ... >> for the responsible host. ...
      (microsoft.public.exchange.setup)
    • Re: fedora-list Digest, Vol 12, Issue 126
      ... I add a domain, a host record, save and restart named and when I ... to go about it is to specify the name server you want to query against: ... The second hostname is the nameserver to use. ... entry for your host is probably wrong in your zone file. ...
      (Fedora)
    • Re: host and hostname
      ... Subject: host and hostname ... > nameserver 164.46.1.1 ... The booting process halts for a few minutes saying ... I can log in but I can use my built-in mouse... ...
      (freebsd-questions)