03-22-2005
What OS is this?
In my boxes I have a file called /etc/resolv.conf which has a "search" feature to search listed domains tab delimited in the file. You must list a gateway address as well. Not the one you have in your /etc/hosts file.
it looks like this.
#cat /etc/resolv.conf
domain sbc.com
search pacbell.com ameritech.com snet.com # to search each domain for a host used by nslookup or other feature...
nameserver IP # DNS servers to search the internal company network.
nameserver IP
nameserver IP
Also, there is a file on mine called /etc/nsswitch.conf which has a hierarchy, search, can be in any order: nis/files/dns for other hosts, but I think that is more for clustered or for boxes in the same infrastructure.
10 More Discussions You Might Find Interesting
1. Ubuntu
Hello all,
I've a very strange thing hapenning in my Sys, I've configured the IP, DNS eveything for my internat connection, but Im only able to browse Redhat.com websites.
I cant open anyother site!!! :eek:
Im sure the internet is configured 'coz it displays the list of avail updates for... (11 Replies)
Discussion started by: AbhijithS
11 Replies
2. Solaris
hey guys, how to add soalris box as a microsoft DNS Client ?
and how to register in the microsoft DNS ??
i managed to query from the DNS server after adding /etc/resolve.conf and editing /etc/nsswitch.conf
but i need to register the soalris server (dns Client) into Microsoft DNS automatically.... (3 Replies)
Discussion started by: mduweik
3 Replies
3. IP Networking
so we had bind 9.3.0...
we upgraded to 9.5.0 patch 1
we kept the exact same named.conf
now we have a problem that some DMZ server cant do lookups from our DNS slave anymore.
in the named.log we see things like this:
22-Jul-2008 16:05:04.694 security: info: client <our DMZ servers... (2 Replies)
Discussion started by: robsonde
2 Replies
4. Solaris
Hi all
Long time no speak, I hope you are all well.
Im looking at a DNS issue here and reckon Igot a AD / DNS server issue elsewhere but need to rule out the configuration of my two server's first.
IVe got the nameserver enteries in /etc/resolv.conf and dns in the /etc/nsswitch.conf
... (2 Replies)
Discussion started by: sbk1972
2 Replies
5. UNIX for Advanced & Expert Users
I'd like to get some opnions on choosing DNS server:
Windows DNS vs Linux BIND comparrsion:
1) managment, easy of use
2) Security
3) features
4) peformance
5) ??
I personally prefer Windows DNS server for management, it supports GUI and command line. But I am not sure about security... (2 Replies)
Discussion started by: honglus
2 Replies
6. UNIX for Dummies Questions & Answers
Hi Guys,
Just wanted to seek your assistance on an issue encountered with one of our client DNS server query. we have 2 sets of DNS servers.. internal and external. For Internal to reach the external DNS server (DMZ) it has to go through 2 FWs.
Current settings:
- FW rules for Internal... (3 Replies)
Discussion started by: Hotshot8259
3 Replies
7. Red Hat
Hi,
I have a question on how to point the DNS server-1's A-record to second DNS server, which is DNS server-2. So, the computer can access other domain which only listed in the DNS server-2. The scenario is as follow:
http://img689.imageshack.us/img689/6333/12234.png
How to configure this... (4 Replies)
Discussion started by: Paris Heng
4 Replies
8. Red Hat
I am trying to setup a CentOS 6.2 server that will be doing 3 things DHCP, DNS & Samba for a very small office (2 users). The idea being this will replace a very old Win2k server. The users are all windows based clients so only the server will be Linux based.
I've installed CentOS 6.2 with... (4 Replies)
Discussion started by: FireBIade
4 Replies
9. Red Hat
I am having a bit of trouble getting my CENTOS 6.5 DNS server to work correctly in our testlab environment. Lab network is 10.8.0.0/24 in which we all access from 10.7.0.0.0/24 && 10.0.0.0/24. Here are my configs:
options {
listen-on port 53 { 127.0.0.1; 10.8.0.19;};
#listen-on-v6 port 53 {... (2 Replies)
Discussion started by: metallica1973
2 Replies
10. Solaris
Hi,
We have built a new server (RHEL VM)and added that IP/hostname into dns zone configs file on DNS server (Solaris 10). Reloaded the configuration using
and added nameserver into resolv.conf on client. But when I am trying nslookup, its not getting resolved. The nameserver is not able to... (8 Replies)
Discussion started by: snchaudhari2
8 Replies
LEARN ABOUT PHP
eventdnsbase
EVENTDNSBASE(3) 1 EVENTDNSBASE(3)
The EventDnsBase class
INTRODUCTION
Represents Libevent's DNS base structure. Used to resolve DNS asyncronously, parse configuration files like resolv.conf etc.
CLASS SYNOPSIS
EventDnsBase
final
EventDnsBase
Constants
o const integer$EventDnsBase::OPTION_SEARCH1
o const integer$EventDnsBase::OPTION_NAMESERVERS2
o const integer$EventDnsBase::OPTION_MISC4
o const integer$EventDnsBase::OPTION_HOSTSFILE8
o const integer$EventDnsBase::OPTIONS_ALL15
Methods
o public bool EventDnsBase::addNameserverIp (string $ip)
o public void EventDnsBase::addSearch (string $domain)
o public void EventDnsBase::clearSearch (void )
o public EventDnsBase::__construct (EventBase $base, bool $initialize)
o public int EventDnsBase::countNameservers (void )
o public bool EventDnsBase::loadHosts (string $hosts)
o public bool EventDnsBase::parseResolvConf (int $flags, string $filename)
o public bool EventDnsBase::setOption (string $option, string $value)
o public bool EventDnsBase::setSearchNdots (int $ndots)
PREDEFINED CONSTANTS
o EventDnsBase::OPTION_SEARCH - Tells to read the domain and search fields from the resolv.conf file and the ndots option, and use
them to decide which domains(if any) to search for hostnames that aren't fully-qualified.
o EventDnsBase::OPTION_NAMESERVERS - Tells to learn the nameservers from the resolv.conf file.
o EventDnsBase::OPTION_MISC -
o EventDnsBase::OPTION_HOSTSFILE - Tells to read a list of hosts from /etc/hosts as part of loading the resolv.conf file.
o EventDnsBase::OPTIONS_ALL - Tells to learn as much as it can from the resolv.conf file.
PHP Documentation Group EVENTDNSBASE(3)