Re: amcheck and fqdn names
2005-06-18 14:02:54
On Sat, Jun 18, 2005 at 09:26:58AM -0700, Jerome Pioux wrote:
>
> > Build the attached programs, gethostbyname and gethostbyaddr.
> > ...
> > Make sure you get proper resolution with the address, the fqdn, and the
> > shortname.
>
> I don't see anything wong but maybe you can?
>
> [reddog] (root) GetHost.d> ./gethostbyname reddog
> name reddog -> reddog.gpv.az05.bull.com
> 141.112.17.140 (addr)
>
> [reddog] (root) GetHost.d> ./gethostbyname reddog.gpv.az05.bull.com
> name reddog.gpv.az05.bull.com -> reddog.gpv.az05.bull.com
> 141.112.17.140 (addr)
>
> [reddog] (root) GetHost.d> ./gethostbyaddr 141.112.17.140
> addr 141.112.17.140 -> reddog.gpv.az05.bull.com
> 141.112.17.140 (addr)
Yeah, the last two.
You seem to be able to go from reddog to the FQDN
but from neither the FQDN nor the addr to reddog.
An example:
$ gethostbyname butch.jgcomp.com
name butch.jgcomp.com -> butch.jgcomp.com
butch (alias)
jgcomp.com (alias)
loghost (alias)
205.166.177.60 (addr)
Note it is listing all the aliases.
Don't know why yours doesn't. In the example above
the aliases are coming from my local hosts file.
But that doesn't have to be the case:
$ gethostbyname mail.yahoo.com
name mail.yahoo.com -> login.yahoo.akadns.net
mail.yahoo.com (alias)
login.yahoo.com (alias)
216.109.127.60 (addr)
HTH, maybe someone else has specific suggestions.
--
Jon H. LaBadie jon AT jgcomp DOT com
JG Computing
4455 Province Line Road (609) 252-0159
Princeton, NJ 08540-4322 (609) 683-7220 (fax)
|
|
|