|
View:
New views
6 Messages
—
Rating Filter:
Alert me
|
|
|
Question (not necessarily related to -amd64)Is an /etc/hosts lookup negligible? I'd like to assign "friendly
names" to my servers "i.e. 'mysql' for the mysql server" - right now I use IPs. But it would make it more portable (as well as make it easier for my hosting clients to remember) - but if it's going to add a lot of overhead, then I'd rather not... I know it isn't as "expensive" as a normal DNS lookup, but it has to be more expensive than just a straight IP address. This would mainly be used from PHP scripts, some are accessed hundreds of times per minute - maybe this information gets cached and I'm worrying for nothing? Thanks, mike |
|
|
Re: Question (not necessarily related to -amd64)This one time, at band camp, mike said:
> Is an /etc/hosts lookup negligible? I'd like to assign "friendly > names" to my servers "i.e. 'mysql' for the mysql server" - right now I > use IPs. But it would make it more portable (as well as make it easier > for my hosting clients to remember) - but if it's going to add a lot > of overhead, then I'd rather not... I know it isn't as "expensive" as > a normal DNS lookup, but it has to be more expensive than just a > straight IP address. > > This would mainly be used from PHP scripts, some are accessed hundreds > of times per minute - maybe this information gets cached and I'm > worrying for nothing? programs call gethostbyname() at some point during their execution anyway, so this is already being done behind the scenes, and you're just not noticing. Putting it in /etc/hosts is as cheap as it gets, besides nscd (when that's not crashing). HTH, -- ----------------------------------------------------------------- | ,''`. Stephen Gran | | : :' : sgran@... | | `. `' Debian user, admin, and developer | | `- http://www.debian.org | ----------------------------------------------------------------- |
|
|
Re: Question (not necessarily related to -amd64)This one time, at band camp, mike said:
> Is an /etc/hosts lookup negligible? And please turn off your autoresponder for mailing list traffic. Thanks, -- ----------------------------------------------------------------- | ,''`. Stephen Gran | | : :' : sgran@... | | `. `' Debian user, admin, and developer | | `- http://www.debian.org | ----------------------------------------------------------------- |
|
|
Re: Question (not necessarily related to -amd64)this was directed at that one guy with the out of office message, right?
i shouldn't have any sort of responders... On 12/5/05, Stephen Gran <sgran@...> wrote: > This one time, at band camp, mike said: > > Is an /etc/hosts lookup negligible? > > And please turn off your autoresponder for mailing list traffic. > > Thanks, > -- > ----------------------------------------------------------------- > | ,''`. Stephen Gran | > | : :' : sgran@... | > | `. `' Debian user, admin, and developer | > | `- http://www.debian.org | > ----------------------------------------------------------------- > > > -----BEGIN PGP SIGNATURE----- > Version: GnuPG v1.4.1 (GNU/Linux) > > iD8DBQFDlNMISYIMHOpZA44RAg7lAKDTKLax1QI/HDs5+CkrbBGBMMIAcwCfbLQy > TYvrv+3FAvmUiH2Oqu7ABl4= > =7Dzq > -----END PGP SIGNATURE----- > > > |
|
|
Re: Question (not necessarily related to -amd64)This one time, at band camp, mike said:
> this was directed at that one guy with the out of office message, right? > > i shouldn't have any sort of responders... Yes, sorry - I should have been clearer. It was meant as a pointer to netiquette, not criticism, and it wasn't directed at you. -- ----------------------------------------------------------------- | ,''`. Stephen Gran | | : :' : sgran@... | | `. `' Debian user, admin, and developer | | `- http://www.debian.org | ----------------------------------------------------------------- |
|
|
Re: Question (not necessarily related to -amd64)That's what I thought :) No hard feelings here.
On 12/5/05, Stephen Gran <sgran@...> wrote: > This one time, at band camp, mike said: > > this was directed at that one guy with the out of office message, right? > > > > i shouldn't have any sort of responders... > > Yes, sorry - I should have been clearer. > > It was meant as a pointer to netiquette, not criticism, and it wasn't > directed at you. > -- > ----------------------------------------------------------------- > | ,''`. Stephen Gran | > | : :' : sgran@... | > | `. `' Debian user, admin, and developer | > | `- http://www.debian.org | > ----------------------------------------------------------------- > > > -----BEGIN PGP SIGNATURE----- > Version: GnuPG v1.4.1 (GNU/Linux) > > iD8DBQFDlNxoSYIMHOpZA44RAop5AKCbGflTieMr5AwZylsvS7ZmtU2IQgCgzPcn > lifh19ncSTlfOeTb3ajexFA= > =C42r > -----END PGP SIGNATURE----- > > > |
| Free embeddable forum powered by Nabble | Forum Help |