Solved

DNS for Fedora 18

Posted on 2013-06-04
10
346 Views
Last Modified: 2013-06-06
Hi Experts,
I have a Fedora 18 in DMZ with the external dns server.
But when it sends me a log message via an email, it should go to the SMTP server where is in inside network. I already open the smtp port on the firewall.
When I did nslookup, it tries to resolve the smtp server using the external DNS.
How can it specify this computer to go to the internal DNS when it tries to send email?
The smtp server is working just fine with all other servers.
Thanks in advance.
0
Comment
Question by:Ksean
  • 5
  • 5
10 Comments
 
LVL 21

Expert Comment

by:Mazdajai
Comment Utility
Do you have internal DNS server defined in your /etc/resolv.conf?
0
 

Author Comment

by:Ksean
Comment Utility
yes.

search local.com
nameserver 198.6.1.4
nameserver 198.6.1.5

Is there any other location that I have to modify to resovle the internal host names while the external DNS are specified in ifcfg-eth0?
0
 
LVL 21

Expert Comment

by:Mazdajai
Comment Utility
Sounds like you have NetworkManager running.

You can check your ifcfg files if this is present NM_CONTROLLED=YES. If NM is running, NM will take the DNS servers you defined in ifcfg-xxx and overwrite them into resolv.conf.

So the answer is updating the ifcfg-eth0 if you have NM running, else you have to edit resolv.conf manually.
0
 

Author Comment

by:Ksean
Comment Utility
NM is running and I update resolve.conf file manually but I haven't restarted NM yet.
Will it be OK after restarting NM?
0
 
LVL 21

Expert Comment

by:Mazdajai
Comment Utility
You need to update the network scripts - ifcfg-eth0 if you have NM running, NM may overwrite the entry in resolv.conf.

DNS1=1.2.3.4
DNS2=1.2.3.5

Open in new window

After updating the network scripts, run. Be aware that it will disrupt the connection of the server.
service NetworkManager stop
service NetworkManager start

Open in new window

0
The problems with reply email signatures

Do you wish that you could place an email signature under a reply? Well, unfortunately, you can't. That great Exchange/Office 365 signature you've created will just appear at the bottom of an email chain. What a pain! Is there really no way to solve this? Well, there might be...

 

Author Comment

by:Ksean
Comment Utility
ifcfg has still dns1=198.6.1.4 and dns2=198.6.1.5 from the biginning. These are the external DNS of verizon. I cannot have an internal DNS because this is in DMZ. Do I need anything else?
0
 
LVL 21

Expert Comment

by:Mazdajai
Comment Utility
Can you clarify the following?

How can it specify this computer to go to the internal DNS when it tries to send email?
I cannot have an internal DNS because this is in DMZ.
0
 

Author Comment

by:Ksean
Comment Utility
When one of the linux in DMZ sends me where in Inside network a log every day, it uses a SMTP server where is in Inside network so I opened port 25 between the DMZ and Inside.
The linux has the external DNS servers which is 198.6.1.5 When the linux sends an email using the Inside SMTP server, it tries to resolve the host name by the external DNS which cannot be resolved.
This what i need.
The linux should be resolved the host name internally when it sends me an email and all others should be resolved by the external DNS.
I hope this makes sense.
I will try to restart NM since I already changed the resolv.conf file to see how it goes.
0
 
LVL 21

Accepted Solution

by:
Mazdajai earned 500 total points
Comment Utility
For your scenario, one way I can think of is to use local host file.
0
 

Author Closing Comment

by:Ksean
Comment Utility
Thanks
0

Featured Post

6 Surprising Benefits of Threat Intelligence

All sorts of threat intelligence is available on the web. Intelligence you can learn from, and use to anticipate and prepare for future attacks.

Join & Write a Comment

Suggested Solutions

BIND is the most widely used Name Server. A Name Server is the one that translates a site name to it's IP address. There is a new bug in BIND (https://kb.isc.org/article/AA-01272), affecting all versions of BIND 9 from BIND 9.1.0 (inclusive) thro…
The purpose of this article is to demonstrate how we can use conditional statements using Python.
In this video we show how to create a mailbox database in Exchange 2013. We show this process by using the Exchange Admin Center. Log into Exchange Admin Center.: First we need to log into the Exchange Admin Center. Navigate to the Servers >> Data…
Get a first impression of how PRTG looks and learn how it works.   This video is a short introduction to PRTG, as an initial overview or as a quick start for new PRTG users.

743 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

17 Experts available now in Live!

Get 1:1 Help Now