how to get ip adress of MX host for some email adress

how to get ip adress of MX host for some email adress

Post by Klaus Preisle » Thu, 30 Apr 1998 04:00:00



Hi there,

Is there a lib function in UNIX that will return ip adress based on
looking up MX record for a given mail domain ?

if not, how do I do this then ?

Regards,
Klaus

 
 
 

how to get ip adress of MX host for some email adress

Post by Barry Margoli » Thu, 30 Apr 1998 04:00:00




Quote:>Is there a lib function in UNIX that will return ip adress based on
>looking up MX record for a given mail domain ?

>if not, how do I do this then ?

You have to call the DNS resolver libraries directly.  See res_send(3) and
friends.

--

GTE Internetworking, Powered by BBN, Cambridge, MA
*** DON'T SEND TECHNICAL QUESTIONS DIRECTLY TO ME, post them to newsgroups.

 
 
 

1. Prevent access to linux server when mac adress does not match ip adress

Hello,

i am running a red hat 6.2 server which is used for internet ip traffic
measurement.
All clients connected to this server get a ip adress through dhcp. To be
sure that every client keeps getting the smake ip adress when it connects
the dhcp server gives ip adresses to the client pc's based on their mac
adress.  This works fine as long as the clients are not changing their ip
adress manualy.

Is there a way to prevent access to the linux server when the ip adress of a
certain client does not match the mac adress.

Thanks,

Kris Houben

2. 2 monitors and 2 cdrom drives

3. dynamic ip-adresses to fix adresses

4. Implicit GNU Licence?

5. PPP with dynamic IP adresses and hosts.equiv ?

6. Help with Slackware setup

7. query host ip adress

8. Problem with Kerberos 5

9. PPP don't gets right IP-Adress

10. XDMCP gets wrong IP Adress

11. getting windows tcp/ip adresses

12. sshd reports "Cannot reverse map adress <calling host's IP>"

13. 2 ip adresses, different subnet, ping reply from ip in other subnet ?