05-09-2009
Okies !! thanking you for your reply....ya we are also using DNS BIND server ..so maybe your script will help me out for resolving my query.........Could you pls send me out the format of your script sothat i can understand and test it in my working environment.
8 More Discussions You Might Find Interesting
1. UNIX for Dummies Questions & Answers
I have users with laptops who may telnet from the local network one minute and then connect remotely a short time later from a different IP address.
This causes a problem as the UnixWare 7.1.1 server appears to try to resolve the remote machine name (via our primary DNS server) to the IP... (4 Replies)
Discussion started by: rm -r *
4 Replies
2. Shell Programming and Scripting
Hi everyone,
I am having a problem in the following area:
I want to arrange list of Ip Addresses selected from a multiple files and make it look like this:
"IP=192.168.0.1, hostname=snake.cooliris.com"
Now i have already written the code to select the ip address from various files but... (4 Replies)
Discussion started by: snake450
4 Replies
3. UNIX for Advanced & Expert Users
Originally I had the server at home and on Comcast so I used dyndns.org for DNS.
Once the server got a bit more popular, I leased a server at a colo facility. They set up the server name in their DNS so I didn't really have any reason to manage my own DNS. DynDNS was managing the domains and I... (7 Replies)
Discussion started by: BOFH
7 Replies
4. UNIX for Advanced & Expert Users
I've got an old v880 running Sol10 that is going to another location. When the system moves, the domainname in resolv.conf will change also. My DBA's are going through the steps of installing Oracle on the box and they want the install program to resolve the hostname is if the box were already in... (2 Replies)
Discussion started by: bluescreen
2 Replies
5. Shell Programming and Scripting
I have forward dns zone file with A records and converting it to reverse zone file
ex.
subdomain1 A 10.20.30.40
subdomain2 A 10.20.31.41
subdomain3 A 10.20.35.43
subdomain4 A 10.20.30.41
subdomain5 ... (5 Replies)
Discussion started by: mosavani
5 Replies
6. UNIX for Advanced & Expert Users
Folks...have just stumbled on an issue where DNSstuff says there is no reverse dns in place when there is...as evidenced by a reverse check from 3 diff networks.
Any advice why this would be happening (DNSstuff-wise) would be appreciated.
Jordan:
jsd@standby:~$ host 12.177.133.70... (3 Replies)
Discussion started by: jsd
3 Replies
7. IP Networking
Hello, I'm trying to get reverse dns to point to my domain on network but I'm failing. I am using bind dns with port 53 enabled and my ISP is mediacom. Currently my reverse dns is *.client.mchsi.com and I would like to make it example.com basically.
My bind configuration
I have 2 records, one... (4 Replies)
Discussion started by: GRMrGecko
4 Replies
8. Red Hat
Hi guys. Ok so let me lay out my configs. I can do a NSlookup from client to server BUT NOT a reverse lookup.
DNS server: Optimus.jaydomain.com
IP : 192.168.1.50
DNS Client: Megatron.jaydomain.com
IP : 192.168.1.60
On Sever:
# cat /etc/named.conf
//
// named.conf
//
// Provided... (4 Replies)
Discussion started by: Junaid Subhani
4 Replies
LEARN ABOUT SUSE
mail::spamassassin::dnsresolver
Mail::SpamAssassin::DnsResolver(3) User Contributed Perl Documentation Mail::SpamAssassin::DnsResolver(3)
NAME
Mail::SpamAssassin::DnsResolver - DNS resolution engine
DESCRIPTION
This is a DNS resolution engine for SpamAssassin, implemented in order to reduce file descriptor usage by Net::DNS and avoid a response
collision bug in that module.
METHODS
$res->load_resolver()
Load the "Net::DNS::Resolver" object. Returns 0 if Net::DNS cannot be used, 1 if it is available.
$resolver = $res->get_resolver()
Return the "Net::DNS::Resolver" object.
$res->nameservers()
Wrapper for Net::DNS::Resolver->nameservers to get or set list of nameservers
$res->connect_sock()
Re-connect to the first nameserver listed in "/etc/resolv.conf" or similar platform-dependent source, as provided by "Net::DNS".
$res->get_sock()
Return the "IO::Socket::INET" object used to communicate with the nameserver.
$packet = new_dns_packet ($host, $type, $class)
A wrapper for "Net::DNS::Packet::new()" which traps a die thrown by it.
To use this, change calls to "Net::DNS::Resolver::bgsend" from:
$res->bgsend($hostname, $type);
to:
$res->bgsend(Mail::SpamAssassin::DnsResolver::new_dns_packet($hostname, $type, $class));
$id = $res->bgsend($host, $type, $class, $cb)
Quite similar to "Net::DNS::Resolver::bgsend", except that when a response packet eventually arrives, and "poll_responses" is called,
the callback sub reference $cb will be called.
Note that $type and $class may be "undef", in which case they will default to "A" and "IN", respectively.
The callback sub will be called with three arguments -- the packet that was delivered, and an id string that fingerprints the query
packet and the expected reply. The third argument is a timestamp (Unix time, floating point), captured at the time the packet was
collected. It is expected that a closure callback be used, like so:
my $id = $self->{resolver}->bgsend($host, $type, undef, sub {
my ($reply, $reply_id, $timestamp) = @_;
$self->got_a_reply ($reply, $reply_id);
});
The callback can ignore the reply as an invalid packet sent to the listening port if the reply id does not match the return value from
bgsend.
$nfound = $res->poll_responses()
See if there are any "bgsend" response packets ready, and return the number of such packets delivered to their callbacks.
$res->bgabort()
Call this to release pending requests from memory, when aborting backgrounded requests, or when the scan is complete.
"Mail::SpamAssassin::PerMsgStatus::check" calls this before returning.
$packet = $res->send($name, $type, $class)
Emulates "Net::DNS::Resolver::send()".
$res->errorstring()
Little more than a stub for callers expecting this from "Net::DNS::Resolver".
If called immediately after a call to $res->send this will return "query timed out" if the $res->send DNS query timed out. Otherwise
"unknown error or no error" will be returned.
No other errors are reported.
$res->finish_socket()
Reset socket when done with it.
$res->finish()
Clean up for destruction.
perl v5.12.1 2010-03-16 Mail::SpamAssassin::DnsResolver(3)