hostname and domains

bazzoola bazzoola at gmail.com
Tue May 24 15:15:08 PDT 2005


fbsd_user wrote:

>What does the hostname command on the FreeBSD box return when you
>enter it on the command line?
>
>-----Original Message-----
>From: owner-freebsd-questions at freebsd.org
>[mailto:owner-freebsd-questions at freebsd.org]On Behalf Of bazzoola
>Sent: Tuesday, May 24, 2005 5:55 PM
>To: freebsd-questions at freebsd.org
>Subject: hostname and domains
>
>
>Greetings,
>
>I have Three workstations all of them are pretty much setup the same
>way. All of them use DHCP and all of them connect to the same server
>(I
>do not know what is it running as of now)
>
>The first workstation is Windows XP. It receives its IP and hostname
>correct basically I get 10.0.0.201 and winxp.mydomain.com as a
>hostname
>both host and IP resolve to each other correctly
>The second workstation is Mac OS X. It receives similar enough
>10.0.0.202 and macosx.mydomain.com as a hostname both IP and
>hostname
>resolve to each other correctly.
>The third which is a FreeBSD 5.4-Release receives an IP address
>10.0.0.203 but does not get a hostname. Well the hostname is setup
>in
>rc.conf as bsd01 but the DNS in the domain is not aware of it for
>some
>reason.
>The NS can resolve macosx and winxp but it cannot resolve the
>hostname
>for bsd01.
>
>Any thoughts what is going here?
>
>Thanks in advance,
>bazzoola
>
>_______________________________________________
>freebsd-questions at freebsd.org mailing list
>http://lists.freebsd.org/mailman/listinfo/freebsd-questions
>To unsubscribe, send any mail to
>"freebsd-questions-unsubscribe at freebsd.org"
>
>
>  
>
hostname command returns
bsd01.mydomain.com
which is the same value I have in rc.conf
but the command host bsd01 ....... gives

% host bsd01.mydomain.com
Host bsd01.mydomain.com not found: 3(NXDOMAIN)

unlike winxp and macosx. bsd01 does not return the IP :(

bazzoola



More information about the freebsd-questions mailing list