07-24-2002
I did a nslookup of the MX record to grab the dns servers for btopenworld.com and got the following:
> set type=mx
> btopenworld.com
Server: which1.mycom.com
Address: 10.140.16.20
btopenworld.com preference = 10, mail exchanger = stargate.btinternet.com
btopenworld.com preference = 20, mail exchanger = moongate.btinternet.com
btopenworld.com nameserver = dns1.btinternet.com
btopenworld.com nameserver = dns2.btinternet.com
dns1.btinternet.com internet address = 194.73.73.95
dns2.btinternet.com internet address = 194.73.73.94
I then set my server to dns1 and type to address
> server dns1.btinternet.com
Default Server: dns1.btinternet.com
Address: 194.73.73.95
> set type=a
> 217.37.41.254
Server: dns1.btinternet.com
Address: 194.73.73.95
Name: host217-37-41-254.in-addr.btopenworld.com
Address: 217.37.41.254
I believe the address is your system, not the DNS nameserver (unless you are running DNS on the server). Try setting your nameserver to 194.73.73.95. If that works, add a second nameserver of 194.73.73.94 (dns2).
Last edited by RTM; 07-24-2002 at 11:55 AM..
10 More Discussions You Might Find Interesting
1. IP Networking
I am new to unix. I have edited the /etc/resolv.conf. It shows
domain name
ip address
ip address
These are the same ips of the dns I use for windows. Still I get no name resolution on the internet. I can ping external ip's is there anything else I need to check? (1 Reply)
Discussion started by: rpnhavoc
1 Replies
2. SuSE
I want to have 7 search domains in my resolv.conf, but it seems to like only the first six.
I read somewhere that the OS will only recognize the first 6 (or the first 154 characters). Is that the case with SUSE 10?
thx
-Kevin (2 Replies)
Discussion started by: kjbaumann
2 Replies
3. Shell Programming and Scripting
HI ALL
I am making a script,That will does the following,I am in search of ideas
1.Script will comment all existing the entries in resolve.conf
2.Add new entries like this
abc.example.com
192.168.1.x
I can use sed to add comment. (8 Replies)
Discussion started by: aliahsan81
8 Replies
4. UNIX for Dummies Questions & Answers
Hi everyone
A quick question during a audit this was determined to be a security issue
In the resolv.conf there is a “.” At the end of the domain name
Like this
domain mydomain.com.
I which to understand the function or significance of the .
thk (3 Replies)
Discussion started by: Ex-Capsa
3 Replies
5. AIX
Guys,
I have enabled the resolv.conf to be configured with our DNS Network
and it's configured when I ping any hostname in my Network from the server it's giving me the hostname of that machine (witch mean it's working fine )
but I‘m facing slowness in my connection when I rename... (13 Replies)
Discussion started by: ITHelper
13 Replies
6. Ubuntu
Hi,
My resolv.conf keeps overwritten. I want to have it to just keep the setting that I put in there. I tried a few solutions I found using google.
like supersede domain-name "xxx", prepend domain-name-servers xxx.xxx.xxx.xxx;
This does'nt work.
I also tried to just chmod the file to... (4 Replies)
Discussion started by: jld
4 Replies
7. Red Hat
Hi all, :(
I am facing issue while I have updated in resolv.conf, after nework service restart, it was automatically deleted IP from resolv.conf file.
Could you please let me know what is the reason resolv.conf deleted any IP which I have manually updated, but it store only my router IP... (3 Replies)
Discussion started by: Pradipta Kumar
3 Replies
8. UNIX for Dummies Questions & Answers
Hi,
Am trying to configure DNS server and trying to keep the information in /etc/resolv.conf file as:
search server
nameserver 192.168.0.10
when i restart the network service with #service network restart, resolv.conf file is changing as:
nameserver 192.168.0.10
search server -... (5 Replies)
Discussion started by: raosr020
5 Replies
9. Ubuntu
Hi All!
I am using Ubuntu 12.04 with LXDE. This is office's allocated laptop.
I have a problem here now, my /etc/resolv.conf file is not getting updated automatically whenever I am switching network, i.e. home or office. I have to do it manually every-time, I manually input the office's DNS,... (3 Replies)
Discussion started by: nixhead
3 Replies
10. Solaris
Hi,
I've installed Solaris 11.3(live media) and configured DNS. Everytime I reboot the server, resolv.conf got deleted and it created a new nsswitch.conf.
I used below to configure both settings:
# svccfg -s dns/client
svc:/network/dns/client> setprop config/nameserver = (xx.xx.xx.aa... (1 Reply)
Discussion started by: flexihopper18
1 Replies
LEARN ABOUT REDHAT
net::dns::nameserver
Net::DNS::Nameserver(3) User Contributed Perl Documentation Net::DNS::Nameserver(3)
NAME
Net::DNS::Nameserver - DNS server class
SYNOPSIS
"use Net::DNS::Nameserver;"
DESCRIPTION
Instances of the "Net::DNS::Nameserver" class represent simple DNS server objects. See "EXAMPLE" for an example.
METHODS
new
my $ns = Net::DNS::Nameserver->new(
LocalAddr => "10.1.2.3",
LocalPort => "5353",
ReplyHandler => &reply_handler,
Verbose => 1
);
Creates a nameserver object. Attributes are:
LocalAddr IP address on which to listen. Defaults to INADDR_ANY.
LocalPort Port on which to listen. Defaults to 53.
ReplyHandler Reference to reply-handling subroutine. Required.
Verbose Print info about received queries. Defaults to 0 (off).
The ReplyHandler subroutine is passed the query name, query class, and query type. It must return the response code and references to
the answer, authority, and additional sections of the response. Common response codes are:
NOERROR No error
FORMERR Format error
SERVFAIL Server failure
NXDOMAIN Non-existent domain (name doesn't exist)
NOTIMP Not implemented
REFUSED Query refused
See RFC 1035 and the IANA dns-parameters file for more information:
ftp://ftp.rfc-editor.org/in-notes/rfc1035.txt
http://www.isi.edu/in-notes/iana/assignments/dns-parameters
The nameserver will listen for both UDP and TCP connections. On Unix-like systems, the program will probably have to run as root to listen
on the default port, 53. A non-privileged user should be able to listen on ports 1024 and higher.
Returns a Net::DNS::Nameserver object, or undef if the object couldn't be created.
See "EXAMPLE" for an example.
main_loop
$ns->main_loop;
Start accepting queries.
EXAMPLE
The following example will listen on port 5353 and respond to all queries for A records with the IP address 10.1.2.3. All other queries
will be answered with NXDOMAIN. Authority and additional sections are left empty.
#!/usr/bin/perl -Tw
use Net::DNS;
use strict;
sub reply_handler {
my ($qname, $qclass, $qtype) = @_;
my ($rcode, @ans, @auth, @add);
if ($qtype eq "A") {
my ($ttl, $rdata) = (3600, "10.1.2.3");
push @ans, Net::DNS::RR->new("$qname $ttl $qclass $qtype $rdata");
$rcode = "NOERROR";
}
else {
$rcode = "NXDOMAIN";
}
return ($rcode, @ans, @auth, @add);
}
my $ns = Net::DNS::Nameserver->new(
LocalPort => 5353,
ReplyHandler => &reply_handler,
Verbose => 1
);
if ($ns) {
$ns->main_loop;
}
else {
die "couldn't create nameserver object
";
}
BUGS
Net::DNS::Nameserver objects can handle only one query at a time.
COPYRIGHT
Copyright (c) 2000-2002 Michael Fuhr. All rights reserved. This program is free software; you can redistribute it and/or modify it under
the same terms as Perl itself.
SEE ALSO
perl(1), Net::DNS, Net::DNS::Resolver, Net::DNS::Packet, Net::DNS::Update, Net::DNS::Header, Net::DNS::Question, Net::DNS::RR, RFC 1035
perl v5.8.0 2002-05-31 Net::DNS::Nameserver(3)