?
Solved

DNS for Fedora 18

Posted on 2013-06-04
10
Medium Priority
?
358 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 5
  • 5
10 Comments
 
LVL 21

Expert Comment

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

Author Comment

by:Ksean
ID: 39219577
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
ID: 39219609
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
Windows Server 2016: All you need to know

Learn about Hyper-V features that increase functionality and usability of Microsoft Windows Server 2016. Also, throughout this eBook, you’ll find some basic PowerShell examples that will help you leverage the scripts in your environments!

 

Author Comment

by:Ksean
ID: 39219642
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
ID: 39219673
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
 

Author Comment

by:Ksean
ID: 39219911
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
ID: 39219922
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
ID: 39220218
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 2000 total points
ID: 39220535
For your scenario, one way I can think of is to use local host file.
0
 

Author Closing Comment

by:Ksean
ID: 39225830
Thanks
0

Featured Post

Create CentOS 7 Newton Packstack Running Keystone

A bug was filed against RDO for the installation of Keystone v3. This guide is designed to walk you through the configuration for using Keystone v3 with Packstack. You will accomplish this using various repos and the Answers file.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Resolve Outlook connectivity issues after moving mailbox to new Exchange 2016 server
This process describes the steps required to Import and Export data from and to .pst files using Exchange 2010. We can use these steps to export data from a user to a .pst file, import data back to the same or a different user, or even import data t…
In this video we show how to create an Accepted Domain 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 Mail Flow >> Ac…
The video tutorial explains the basics of the Exchange server Database Availability groups. The components of this video include: 1. Automatic Failover 2. Failover Clustering 3. Active Manager
Suggested Courses
Course of the Month12 days, 4 hours left to enroll

752 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