Hello.




Searching through the code shown me that all stuff is located in

sql/hostname.cc file. MySQL depends on gethostbyaddr_r and uses

the "official" name of the host which it returns. According to

rfc897:



"Hosts have an official (or primary) name and possibly several

nicknames.  When mail is sent from a host, the official name is

used in the mail header address fields."





The official name is only one, and MySQL uses it. For more details see

the source.







Per Jessen <[EMAIL PROTECTED]> wrote:

> Hi,

> 

> when an IP-address is reverse mapped to multiple names, which one is used by 
> mysql for

> user authentication?  Right now (4.1.11) it looks like the first record is 
> used, which

> I'm not sure good enough.  Shouldn't mysql check all the returned names and 
> see if one of

> them authenticates? 

> 

> 

> /Per Jessen, Z$rich

> 

> 



-- 
For technical support contracts, goto https://order.mysql.com/?ref=ensita
This email is sponsored by Ensita.NET http://www.ensita.net/
   __  ___     ___ ____  __
  /  |/  /_ __/ __/ __ \/ /    Gleb Paharenko
 / /|_/ / // /\ \/ /_/ / /__   [EMAIL PROTECTED]
/_/  /_/\_, /___/\___\_\___/   MySQL AB / Ensita.NET
       <___/   www.mysql.com




-- 
MySQL General Mailing List
For list archives: http://lists.mysql.com/mysql
To unsubscribe:    http://lists.mysql.com/[EMAIL PROTECTED]

Reply via email to