On Sun, Oct 06, 2013 at 12:01:05PM -0700, Alexander Gattin wrote: > You have several hostnames or A records or domain names or whatever. > Then you have `hostname`, which is configured in kernel, at least in > Linux (cat /proc/sys/kernel/hostname), which may match some A > record, or not. Or match partially. Your method does not even do > that.
You're still making assumptions here that the host is using DNS, which is by no means the only way to configure host name resolution, and in fact almost all Unix systems use a combination of multiple methods simultaneously. The hostname need not match any A records. For my patch to work, all that matters is that the configured host resolution mechanism can turn the hostname into an IP, and that resolving that IP gets you a domain name. That's guaranteed to work, because if it doesn't your machine is broken. > Just imagine that there was no such thing as `hostname` in kernel. I'm not going to imagine that because it's a requirement of TCP/IP. All machines have a hostname. -- Derek D. Martin http://www.pizzashack.org/ GPG Key ID: 0xDFBEAD02 -=-=-=-=- This message is posted from an invalid address. Replying to it will result in undeliverable mail due to spam prevention. Sorry for the inconvenience.
pgp0yriSIxyGp.pgp
Description: PGP signature