cancel
Showing results for 
Search instead for 
Did you mean: 

DNS problem ???

Daniel Ubeda
Frequent Advisor

DNS problem ???

Hi,

I want to send mails using sendmail.
I configure the sendmail.cf as relay.
.
.
DSmail_server
.
.

The linux is in a dmz zone(net 192.168.114.56), in this dmz I have a mail server 192.168.114.206(exchange).
I have defined in /etc/hosts an entry
192.168.114.206 mail_server


I want to resolv names by /etc/hosts, then I configure /etc/nsswitch.conf to resolv by files.

My problem is that when I send a mail, the mail say :
Deferred : Name Server : mail_server hosts name lookup failure

HELP please ...
Daniel
8 REPLIES
Jean-Pierre Denis
Valued Contributor

Re: DNS problem ???

Hi,

you could try:

DS192.168.114.206 instead of DSmail_server.

Why resolving the name when you could send directly.

Thanks,
JP

Open your Mind and use Open Source software...
Balaji N
Honored Contributor

Re: DNS problem ???

hi,
try this.

DS[xxx.xxx.xxx.xx]

where xxx.xxx.xxx.xxx is the ip address. in this way, it will not try to resolve the ip.

hth
-balaji
Its Always Important To Know, What People Think Of You. Then, Of Course, You Surprise Them By Giving More.
Daniel Ubeda
Frequent Advisor

Re: DNS problem ???

Hi again,
I put the ip address in sendmail.cf but the message is the same ....Name Server: 192.168... host name lookup failure


any other idea ???
Daniel
Balaji N
Honored Contributor

Re: DNS problem ???

hi
did u put the ip address within two square braces. (domain literal format)

if not, i guess need to setup service switch.

http://www.sendmail.org/~ca/email/doc8.12/op-sh-2.html#sh-2.5


hth
-balaji
Its Always Important To Know, What People Think Of You. Then, Of Course, You Surprise Them By Giving More.
Daniel Ubeda
Frequent Advisor

Re: DNS problem ???

This is to complicated ....
I configure the file nsswitch.conf that use only files, but the error message persist.
the resolv.conf file should content any parameter ??

In HPUX I have a server in the same net, and without dns, and it resolve with /etc/hosts file !!! but this linux not work in the same way ...
Daniel
Daniel Ubeda
Frequent Advisor

Re: DNS problem ???

OOOO

sorry, I put the ip address into braquets and work !!!

but why don't resolve names with hosts file ????
Daniel
Steven E. Protter
Exalted Contributor

Re: DNS problem ???

Much better to use the IP address.

Test the DNS though.

dig

If it doesn't resolve you have networking/dns issues.

SEP
Steven E Protter
Owner of ISN Corporation
http://isnamerica.com
http://hpuxconsulting.com
Sponsor: http://hpux.ws
Twitter: http://twitter.com/hpuxlinux
Founder http://newdatacloud.com
Balaji N
Honored Contributor

Re: DNS problem ???

cool. now that it works, how abt assigning points.

actually sendmail doesnt use the host file but the MX records. if you dont want to use it has to be configured in the service.switch file. also there is a config entry not to use these MX records (but dont remember now)

hth
-balaji
Its Always Important To Know, What People Think Of You. Then, Of Course, You Surprise Them By Giving More.