dns & host file

G

Guest

Hi I have to use a host file to specify a local server ip and DNS(to go to
internet). Can I get if if host file and put the local IP in a DNS entry?
Please help.
 
M

Meinolf Weber

Hello (e-mail address removed),

Please describe your network setup, server, switches and internet access.
If you only have one machine normally the router is also DNS server for your
machine.

Best regards

Meinolf Weber
Disclaimer: This posting is provided "AS IS" with no warranties, and confers
no rights.
** Please do NOT email, only reply to Newsgroups
** HELP us help YOU!!! http://www.blakjak.demon.co.uk/mul_crss.htm
 
G

Guest

Thansk, I wil try to explain below:
I have two win 2000 servers(application and database server).
Each server have two network cards and use a hub(1 GB) connect each other)
local IP: 192.168.0.100 and 192.168.0.101
The other network cards connect to internet.
192.168.0.100 is setup accept email relay and 192.168.0.101 use
192.168.0.100 to relay email out.
If I don't put 192.168.0.100 in host file, the email won't go out, I think
it can't find in DNS.
I have to put 192.168.0.100 in host file and specify 192.168.0.100 in smart
host in order to let it work.
Can I put 192.168.0.100 local ip in DNS and get rid of host file?
 
H

Herb Martin

Thansk, I wil try to explain below:
I have two win 2000 servers(application and database server).
Each server have two network cards and use a hub(1 GB) connect each other)
local IP: 192.168.0.100 and 192.168.0.101
The other network cards connect to internet.
192.168.0.100 is setup accept email relay and 192.168.0.101 use
192.168.0.100 to relay email out.
If I don't put 192.168.0.100 in host file, the email won't go out, I think
it can't find in DNS.
I have to put 192.168.0.100 in host file and specify 192.168.0.100 in
smart
host in order to let it work.
Can I put 192.168.0.100 local ip in DNS and get rid of host file?

Why do you need to use a host file for that?

Why not run DNS on the 2000 Server(s)?

Point the internal DNS clients (including the servers themselves) to
the INTERNAL DNS server -- add whatever zones and records
you need there.

Have the INTERNAL DNS Servers FORWARD to your ISP.
 
M

Meinolf Weber

Hello (e-mail address removed),

Why do you not install your own DNS server? Think it will be more easy then
using host file. Additional i wouldn't use both NIC's on this way, why not
choosing one NIC on the hub, i prefer switches because they minimize traffic,
and connect via the hub to the internet?


Best regards

Meinolf Weber
Disclaimer: This posting is provided "AS IS" with no warranties, and confers
no rights.
** Please do NOT email, only reply to Newsgroups
** HELP us help YOU!!! http://www.blakjak.demon.co.uk/mul_crss.htm
 
G

Guest

Thanks for the help.
Yes. Both server have DNS installed. If I remove host file, the email won't
go to relay server(192.168.0.100), even I specified 192.168.0.100 as smart
host. How to add 192.168.0.100 to my local DNS server. Thanks again.
 
H

Herb Martin

Thanks for the help.
Yes. Both server have DNS installed. If I remove host file, the email
won't
go to relay server(192.168.0.100), even I specified 192.168.0.100 as smart
host. How to add 192.168.0.100 to my local DNS server. Thanks again.

Create a new record for the host name in the zone.

Ok, since that is so trivial there must be something that we or you
are misunderstanding.

Do you have any zones on your internal server? (for you domains?)
 
G

Guest

Thanks Herb,
The two servers are in workgroup not domain mode. How to add a local IP to
the DNS? Please advice.
 
H

Herb Martin

Thanks Herb,
The two servers are in workgroup not domain mode.

Irrelevant except that you might not yet have (bothered with)
a Zone. (In a domain that would have been required.)
How to add a local IP to the DNS? Please advice.

Add a zone. Anything you want. YourName.local will work.

Add the name to that. Give all the machines this zone name
for their "Primary DNS suffix" in the System Control panel.

AD Domains need DNS, but DNS works just fine (and
basically the same) without AD.
 
A

Ace Fekay [MVP]

In
Thanks Herb,
The two servers are in workgroup not domain mode. How to add a local
IP to the DNS? Please advice.

Why not just relay to the IP address instead of the name?

Btw, what name are you specifying in the hosts file? Is it
relayserver.domain.local or just 'relayserver'?


--
Regards,
Ace

This posting is provided "AS-IS" with no warranties or guarantees and
confers no rights.

Ace Fekay, MCSE 2003 & 2000, MCSA 2003 & 2000, MCSE+I, MCT,
MVP Microsoft MVP - Directory Services
Microsoft Certified Trainer

For urgent issues, you may want to contact Microsoft PSS directly. Please
check http://support.microsoft.com for regional support phone numbers.

Infinite Diversities in Infinite Combinations
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top