Submitted by ramez.hanna on Mon, 28/02/2005 - 16:44.
( categories: Networking and Servers )

io setup a network of linux and windows workstations, i setup samba so now i can use the netbios names to connect to samba/windows shares #smbclient //workstation/share
but i can't #ping workstation , i tried some googles and articles and all i came up with is to setup an internal DNS server for the local network.
i'm OK with that, so can someone point me to a good how-to that addresses this not how to setup a dns server cause they configure internet DNS not local ones


Conceptor's picture
Submitted by Conceptor on Mon, 28/02/2005 - 17:19.

well ,the question is how many pcs on your lan to setup dns ? It's better if you can use hosts if the hosts (pcs are less than 7 ) ,it will be easy to setup .

edit /etc/hosts

host1 ip   		hostname1
host2 ip		hostname2
10.0.0.1                myhostname

append these entries into every linuxbox's /etc/hosts .

do not mess with localhost. or localhost.localdomain if u are usind redhat based distro.

if u insist on dns then you would install BIND and caching-nameserver packages.

I found quick setup for bind ,just drag-and-drop-change will make it work.

Diaa Radwan


Alaa's picture
Submitted by Alaa on Mon, 28/02/2005 - 19:08.

doing hosts is a reasonable solution, but any change has to be synced on all pcs.

at work we got 10 pcs in the office, they take their IPs and DNS config from a dhcp server, what I did was install a lightweight simple to administer caching name server called PDNSD

PDNSD can source the /etc/hosts file and use it as part of its configuration, which means I have neat little DNS server, any changes need only be reflacted in one single /etc/hosts file and the cachin ability is a plus for low upstream internet connections.

cheers, Alaa


http://www.manalaa.net "i`m feeling for the 2nd time like alice in wonderland reading el wafd"


Ashraf's picture
Submitted by Ashraf on Mon, 28/02/2005 - 17:25.

If you have few clients, you can map ip address to hostname using hosts file (/etc/hosts) for you internel network instead of using DNS.

if you gonna DNS .. here's some good references ..

Redhat Manual http://www.redhat.com/docs/manuals/linux/RHL-9-Manual/ref-guide/ch-bind.html

ISC BIND Nameserver - Howtos, Links, Whitepapers http://www.bind9.net/links

Ashraf A. Abd El-Aziem


Conceptor's picture
Submitted by Conceptor on Mon, 28/02/2005 - 17:36.

the guy was asking how-to not a reference , moreover he did not specify his distro to point to Red Hat Linux 9: Red Hat Linux Reference Guide

Diaa Radwan


Ashraf's picture
Submitted by Ashraf on Mon, 28/02/2005 - 17:53.

I've missed you :), try to call me ..

Ashraf A. Abd El-Aziem


ramez.hanna's picture
Submitted by ramez.hanna on Mon, 28/02/2005 - 18:05.

thanks for the reply guys but right now my eyes hurt me and i should go home and leave work so i'll check the links in the morning and update you of my status


the best things in life are free --- so as myself


Pronco's picture
Submitted by Pronco on Tue, 01/03/2005 - 02:35.

I passed by the problem and i built a DNS. read DNS Tutorial don't forget

yum install named

I used to be indecisive .. but now I'm not so sure


Conceptor's picture
Submitted by Conceptor on Tue, 01/03/2005 - 14:30.

named is not the name of the package ,it's the name of the daemon.

so it may be
 chkconfig --levels 345 named off/on

the package name is BIND

it could be
 yum install bind redhat-config-bind 

if it was redhat.i giving an example. not a recommendation because most distros contain the recent bind package and no need to get it over yum.

if you felt the yum is the savior unfortunately the named daemon need humans to configure it :).

Diaa Radwan


Pronco's picture
Submitted by Pronco on Tue, 01/03/2005 - 15:35.

it supposed to be:

yum install bind* caching-nameserver

I used to be indecisive .. but now I'm not so sure


Comment viewing options

Select your preferred way to display the comments and click "Save settings" to activate your changes.