Question (not necessarily related to -amd64)

View: New views
6 Messages — Rating Filter:   Alert me  

Question (not necessarily related to -amd64)

by Michael Shadle :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

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)

by Stephen Gran :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

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?
You'll quickly find when you start doing any debugging that most
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 |
 -----------------------------------------------------------------


signature.asc (196 bytes) Download Attachment

Re: Question (not necessarily related to -amd64)

by Stephen Gran :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

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 |
 -----------------------------------------------------------------


signature.asc (196 bytes) Download Attachment

Re: Question (not necessarily related to -amd64)

by Michael Shadle :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

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)

by Stephen Gran :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

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 |
 -----------------------------------------------------------------


signature.asc (196 bytes) Download Attachment

Re: Question (not necessarily related to -amd64)

by Michael Shadle :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

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-----
>
>
>