Solved

DNS for Fedora 18

Posted on 2013-06-04
10
357 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
Resolve Critical IT Incidents Fast

If your data, services or processes become compromised, your organization can suffer damage in just minutes and how fast you communicate during a major IT incident is everything. Learn how to immediately identify incidents & best practices to resolve them quickly and effectively.

 

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 500 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

Back Up Your Microsoft Windows Server®

Back up all your Microsoft Windows Server – on-premises, in remote locations, in private and hybrid clouds. Your entire Windows Server will be backed up in one easy step with patented, block-level disk imaging. We achieve RTOs (recovery time objectives) as low as 15 seconds.

Question has a verified solution.

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

Granting full access permission allows users to access mailboxes present in their database. By giving full access permission one can open and read the content of any mailbox but cannot send emails from that mailbox.
In part one, we reviewed the prerequisites required for installing SQL Server vNext. In this part we will explore how to install Microsoft's SQL Server on Ubuntu 16.04.
In this Micro Video tutorial you will learn the basics about Database Availability Groups and How to configure one using a live Exchange Server Environment. The video tutorial explains the basics of the Exchange server Database Availability grou…
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

690 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