Main > Free Download Search >

Free dns country lookup software for linux

dns country lookup

Sponsored Links
Sponsored Links
Secleted [ 0 ] software to compare
Results 1 - 15 of about 624
slookup 1.2

slookup 1.2


slookup is a simple program to do parallelized DNS lookups in a convenient way. more>>
slookup is a simple program to do parallelized DNS lookups in a convenient way (useful for log parsing scripts and one-liners).
slookup project reads names (A/MX/NS lookups) or addresses (in dotted-quad format for PTR) on stdin and writes the results on stdout. One record per line. It can run up to 128 parallel DNS lookup processes (easily overloading a slow DNS server) which makes for Really Fast lookups for a large number of records.
Beware, output is written in the order the DNS replies are received, which is usually different from the input order if parallel lookups are done.
It has been tested on the following platforms:
Solaris 2.6 / UltraSparc / gcc 2.7.2.3
RedHat Linux 7.0 / 2.2.17 / glibc-2.1.94 / gcc 2.96
Debian sarge / 2.6.8.1 / glibc-2.3.2 / gcc 3.3.5
Debian etch / 2.6.15 / glibc-2.3.6 / gcc 4.0.3
FreeBSD 5.3-RELEASE / gcc 3.4.2
FreeBSD 6.0-RELEASE / gcc 3.4.4
Enhancements:
- Support for looking up NS records was added.
<<less
Download (0.011MB)
Added: 2006-04-28 License: GPL (GNU General Public License) Price:
1276 downloads
IP::Country 2.23

IP::Country 2.23


IP::Country is a tool for fast lookup of country codes from IP addresses. more>>
IP::Country is a tool for fast lookup of country codes from IP addresses. Finding out the country of a client using only the IP address can be difficult.

Looking up the domain name associated with that address can provide some help, but many IP address are not reverse mapped to any useful domain, and the most common domain (.com) offers no help when looking for country.

IP::Country module comes bundled with a database of countries where various IP addresses have been assigned. Although the country of assignment will probably be the country associated with a large ISP rather than the client herself, this is probably good enough for most log analysis applications, and under test has proved to be as accurate as reverse-DNS and WHOIS lookup.

<<less
Download (0.16MB)
Added: 2007-02-07 License: Perl Artistic License Price:
994 downloads
Locale::SubCountry 1.37

Locale::SubCountry 1.37


Locale::SubCountry is a Perl module that can convert state, province, county etc. names to/from code. more>>
Locale::SubCountry is a Perl module that can convert state, province, county etc. names to/from code.

SYNOPSIS

my $country_code = GB;
my $UK = new Locale::SubCountry($country_code);
if ( not $UK )
{
die "Invalid code $country_coden";
}
elsif ( $UK->has_sub_countries )
{
print($UK->full_name(DGY),"n"); # Dumfries and Galloway
print($UK->regional_division(DGY),"n"); # CT (Scotland)
}

my $australia = new Locale::SubCountry(AUSTRALIA);
print($australia->country,"n"); # AUSTRALIA
print($australia->country_code,"n"); # AU

if ( $australia->has_sub_countries )
{
print($australia->code(New South Wales ),"n"); # NSW
print($australia->full_name(S.A.),"n"); # South Australia
my $upper_case = 1;
print($australia->full_name(Qld,$upper_case),"n"); # QUEENSLAND
print($australia->category(NSW),"n"); # state
print($australia->FIPS10_4_code(ACT),"n"); # 01
print($australia->ISO3166_2_code(02),"n"); # NSW

my @aus_state_names = $australia->all_full_names;
my @aus_code_names = $australia->all_codes;
my %aus_states_keyed_by_code = $australia->code_full_name_hash;
my %aus_states_keyed_by_name = $australia->full_name_code_hash;

foreach my $code ( sort keys %aus_states_keyed_by_code )
{
printf("%-3s : %sn",$code,$aus_states_keyed_by_code{$code});
}
}

# Methods for country codes and names

my $world = new Locale::SubCountry::World;
my @all_countries = $world->all_full_names;
my @all_country_codes = $world->all_codes;

my %all_countries_keyed_by_name = $world->full_name_code_hash;
my %all_country_keyed_by_code = $world->code_full_name_hash;

This module allows you to convert the full name for a countries administrative region to the code commonly used for postal addressing. The reverse lookup can also be done. Sub country codes are defined in "ISO 3166-2:1998, Codes for the representation of names of countries and their subdivisions".

Sub countries are termed as states in the US and Australia, provinces in Canada and counties in the UK and Ireland.

Names and ISO 3166-2 codes for all sub countries in a country can be returned as either a hash or an array.

Names and ISO 3166-1 codes for all countries in the world can be returned as either a hash or an array.

ISO 3166-2 codes can be converted to FIPS 10-4 codes. The reverse lookup can also be done.

<<less
Download (0.062MB)
Added: 2006-08-16 License: Perl Artistic License Price:
1164 downloads
dnshistory 1.3

dnshistory 1.3


dnshistory provides a means for storing a history of DNS/name changes over time. more>>
dnshistory project provide a means for storing a history of DNS and Name changes for the IP Addresses extracted from web log files.
The major target being that multiple analyses of older log files do not require re-lookups of IP Address to FQDNs, and additionally maintain the accuracy of the lookup as it was then and not as it is now.
Main features:
- Do Lookups. The default mode. Given a web log file, dnshistory will perform DNS reverse lookups on each unique IP Address and store the results in a history database.
- Do Translations. Given a raw web log file, dnshistory will make use of a previously created history database and send to STDOUT the same web log but with addresses replaced by the Fully Qualified Domain Name as previously looked up.
- Do Recombining. Given two web log files, one raw and one previously translated (eg. by using dnstran): Create a history database from the values in these separate log files.
- Do Dump. Dump a given history database to STDOUT.
- Show History. Given one or more IP Addresses on the command line, display their history from the database.
Its quite possible that most users would only ever use the first two modes.
The lookups make use of threads for near maximum speed, and use the standard resolution libraries on a system. Thus hosts files, NIS, LDAP and other name resolution methods should work transparently. Unfortunately most other tools ignore local name resolution methods in favour of DNS lookups only.
It is strongly recommended that for massive raw lookups a DNS server is "nearby". Preferably not a forwarding server, or your upstream provider will not like you.
dnshistory can read .gz files. Any input sent via STDIN is currently assumed to not be gz encoded.
dnshistory assumes that the logs being sent are already sorted into oldest --> most_recent date/time order.
A Berkeley Database is used to store the history; as well as possibly reducing the memory footprint within a run.
dnshistory is released under the General Public License.
Enhancements:
- This is practically identical to 1.3-beta1.
<<less
Download (0.11MB)
Added: 2007-01-31 License: GPL (GNU General Public License) Price:
996 downloads
RIR to DNS converter 0.1

RIR to DNS converter 0.1


RIR to DNS converter is a tool to convert Regional Internet Registry data to a DNS country lookup zone. more>>
RIR to DNS converter is a tool to convert Regional Internet Registry data to a DNS country lookup zone. You can use it to build your own DNS zone for looking up country codes from IP addresses.

It uses data directly from RIPE, ARIN, APNIC, LACNIC, and AFRINIC. The data can be updated on a schedule of your choosing.

The input data comes from:

ftp://ftp.afrinic.net/pub/stats/afrinic/delegated-afrinic-latest
ftp://ftp.apnic.net/pub/stats/apnic/delegated-apnic-latest
ftp://ftp.arin.net/pub/stats/arin/delegated-arin-latest
ftp://ftp.ripe.net/pub/stats/ripencc/delegated-ripencc-latest
ftp://ftp.lacnic.net/pub/stats/lacnic/delegated-lacnic-latest

The input data format is described in:

http://www.apnic.net/db/rir-stats-format.html

The output is a BIND 9 zone file that can be used to look up country codes
in a similar fashion to in-addr.arpa. For example, to find out what country
203.30.47.58 is:

host 58.47.30.203.rir.example.com
58.47.30.203.rir.example.com has address 127.0.65.86

where 65 and 85 are ASCII for A and U, which means 203.30.47.58 is
in Australia (AU).

HOW TO USE IT

Just feed it the above delegated- -latest files into stdin and it will
spit out the zone file to stdout. The zone file will only have the IP addresses,
so you could $INCLUDE it into a zone file that contains NS records, SOA, $ORIGIN,
etc.

WHY USE IT

You dont need the resolution of MaxMinds GeoIP database, but you do want
something that is free and you want it kept up to date on a schedule that
you decide.

You could use this to block or tag email based on countries, block or redirect
visitors to your website based on end-user country, and so on. Be very
careful about blocking mail this way, though, as you may block legitimate
email. Instead of blocking outright, use it in a SpamAssassin rule to add
something to the spam level, based on where the email comes from.

HOW IT WORKS

The RIR files contain ranges of IP addresses, and indicate what CC each range is allocated to. At the simplest level, rir2dns just sorts the ranges then iterates
through the IPs in each range and generates a reverse-dns-style A record that
represents the country code.

HOW IT WORKS - IN DETAIL

Rather than iterate through each IP address, the program tries to skip through
entire classes at a time (256 IPs, 65536 IPs, etc). Rather than iterate
through each IP, the loop iterates through classes or IP ranges (whichever are
smaller at the loop control), using control-breaks to accummulate neighbouring
ranges where possible so that entire classes that are in the same country dont
generate huge numbers of records.

Firstly, IPs are considered to be 4-digit numbers, but in base-256. In other
words, each octet is dealt with as if it were a single base-256 digit. This
turns out to be convenient because optimisations of large chunks of IP space can be done by looking for places where least-significant base-256 digits are zero.

Next, IP ranges are broken down into the following sub-ranges:

Optional individual IP addresses (ie: 4 octets)
Optional A-class ranges (ie: 3 octets)
Optional B-class ranges (ie: 2 octets)
Optional C-class ranges (ie: 1 octet)
Optional B-class ranges (ie: 2 octets)
Optional A-class ranges (ie: 3 octets)
Optional individual IP addresses (ie: 4 octets)

Considering that there is a pattern here, Im sure theres an elegant way to
handle breaking this down into two loops (one reducing the octets and one
increasing the octets), but I cant be bothered, so Ill break it down into
seven loops. Kind of hard-coded, but at least its simple.

For ease of processing, the IP addresses are actually converted to 32-bit numbers, then back again. This simplifies mathematics and looping through ranges.

Thats pretty much it, really...

Note that currently there are about 80,000 RIR records between all five
registries. This takes about 35 seconds on a 2.4GHz P4 to process, and
generates a 26MB file with around 3/4 million lines (RRs). This causes BIND
to use about 100MB or so of memory, and on a slow machine will probably cause it to take too long to reply, while it searches the zone. That size zone can
take a minute or two to load, which is quite a while.

Basic algorithm:

Read & process RIR data:

Read RIR ranges
Sort RIR ranges by start IP address
Glue together contiguous ranges of the same country

For each range

Generate the IPs at the start of the range

Generate the A-classes at the start of the range

Generate the B-classes at the start of the range

Generate the C-classes in the middle of the range

Generate the B-classes at the end of the range

Generate the A-classes at the end of the range

Generate the IPs at the end of the range
<<less
Download (0.60MB)
Added: 2007-04-27 License: GPL (GNU General Public License) Price:
913 downloads
dnsutl 1.8

dnsutl 1.8


dnsutl package is a collection tools to make administering DNS easier. more>>
dnsutl package is a collection tools to make administering DNS easier. These include:
dns-rev
Take the forward DNS mapping and generate the reverse mapping. This is useful for producing a self-consistent DNS configuration.
dns-ethers
By using a bogus record type, you can keep the MAC address with the IP address, and generate the /etc/ethers file.
dns-hosts
Take the forward DNS mapping and generate the /etc/hosts file.
dns-bootp
Using the MAC and IP information, you can generate the /etc/bootptab file.
dns-ng
Take the forward DNS mapping and generate the /etc/netgroup file.
dns- bootparams
Using the MAC and IP information, you can generate the Sun /etc/bootparams file.
dns-boot- check
Check your named(8) configuration for self- consistency.
dns-hosts-import
Turn your /etc/hosts file into a DNS forward map, as a first step to configuring your DNS server.
dns-dhcp
Using the MAC and IP information, you can generate the /etc/dhcp.conf file.
All of these programs are both faster than shell scripts, and more robust when faced with all the peculiar semantics of DNS resource files. They even understand the $include directive.
dnsutl runs on almost any flavor of UNIX. The source distribution is self configuring using a GNU Autoconf generated configure script.
Enhancements:
- A bug has been fixed in the SRRF parser, so it more closely follows RFC 1035.
- A bug has been fixed in the name server (ns) record validation.
<<less
Download (0.18MB)
Added: 2006-03-09 License: GPL (GNU General Public License) Price:
1324 downloads
DNS::Config 0.66

DNS::Config 0.66


DNS::Config is a Perl module with DNS Configuration. more>>
DNS::Config is a Perl module with DNS Configuration.

SYNOPSIS

use DNS::Config;
my $config = new DNS::Config();
$config->debug();

ABSTRACT

This class represents a configuration for a domain name service daemon (DNS).

A domain name service daemon configuration knows about the zone information actively provided to the service users as well as lots of other configuration data.

This class allows to represent this configuration data in a more or less generic way. Another class, the file adaptor, then knows how to write the information to a file in a daemon specific format.

So far this class is strongly related to the ISCs Bind domain name service daemon but it is inteded to get more generic in upcoming releases. Your help is welcome.

<<less
Download (0.014MB)
Added: 2007-04-16 License: Perl Artistic License Price:
926 downloads
Free Unlisted Phone Numbers Lookup Tool 2.0

Free Unlisted Phone Numbers Lookup Tool 2.0


With the Free Unlisted Phone Numbers Lookup Tool, You Can Input Unknown Numbers and Run them Across Databases of Phone Numbers to See if the Owners I... more>> <<less
Download (532KB)
Added: 2009-04-14 License: Freeware Price: Free
195 downloads
Telephony::CountryDialingCodes 1.02

Telephony::CountryDialingCodes 1.02


Telephony::CountryDialingCodes is a Perl module that can convert international dialing codes to country codes and vice versa. more>>
Telephony::CountryDialingCodes is a Perl module that can convert international dialing codes to country codes and vice versa.

SYNOPSIS

# Usage method 1 (using object methods):
use Telephony::CountryDialingCodes;
my $o = new Telephony::CountryDialingCodes();
my $country_code = NL;
print "The dialing access code for country $country_code is " . $o->dialing_code($country_code) . "n";
my $dialing_code = 1;
my @country_codes = $o->country_codes($dialing_code);
print "The country code(s) for dialing access code $dialing_code is/are: " . join(,,@country_codes) . "n";


# Usage method 2 (using class methods):
use Telephony::CountryDialingCodes;
my $country_code = NL;
print "The dialing access code for country $country_code is " . Telephony::CountryDialingCodes->dialing_code($country_code) . "n";
my $dialing_code = 1;
my @country_codes = Telephony::CountryDialingCodes->country_codes($dialing_code);
print "The country code(s) for dialing access code $dialing_code is/are: " . join(,,@country_codes) . "n";

# Extracting an intl dialing code from an intl phone number:
use Telephony::CountryDialingCodes;
my $o = new Telephony::CountryDialingCodes();
my $dialing_code = $o->extract_dialing_code(+521234567890);
# $dialing_code will contain 52.

This class exports a method for determining a countrys international dialing code, and another method for doing the reverse: i.e. determining the country code(s) that belong(s) to a given international dialing code.

You can call these methods as class methods or you can create an object and call these methods as object methods. The difference is that if you call them in object context that the internal lookup tables are freed when the object is destroyed, otherwise if you call the methods in class context, then the internal lookup tables are global and will persist for the lifespan of the current process. Its not really a big deal which approach you choose, so for the sake of style, use the object method approach if you have no clue which is better.

<<less
Download (0.004MB)
Added: 2006-09-20 License: Perl Artistic License Price:
1130 downloads
DNS::Zone 0.85

DNS::Zone 0.85


DNS::Zone contains a collection of Perl modules which provide an abstraction of name service zones. more>>
DNS::Zone contains a collection of Perl modules which provide an abstraction of name service zones as well as server specific adaptors for concrete file representations.

The modules origin is the ZoneMaster project which make heavy use of the module for comprehensive zone file management. Go to http://www.zonemaster.org for further information.

Installation:

You install DNS::Zone as you would install any perl module library, by running these command:

If you have CPAN.pm installed and are connected to the Internet

perl -MCPAN -e shell
> install DNS::Zone

or even

perl -MCPAN -e install DNS::Zone

otherwise

perl Makefile.PL
make
make test
make install

<<less
Download (0.008MB)
Added: 2007-04-16 License: Perl Artistic License Price:
924 downloads
DNSMasq Webmin Module 0.9

DNSMasq Webmin Module 0.9


DNSMasq Webmin Module is a Webmin module to allow configuration of DNSMasq, a DNS proxy and DHCP server. more>>
DNSMasq Webmin Module is a Webmin module to allow configuration of DNSMasq, a DNS proxy and DHCP server.

<<less
Download (0.16MB)
Added: 2006-10-19 License: GPL (GNU General Public License) Price:
1122 downloads
Posadis Zone Editor 0.9pre

Posadis Zone Editor 0.9pre


Posadis Zone Editor is a graphical DNS update client. more>>
The Posadis Zone Editor is a graphical tool to edit DNS (Domain Name System) zones using DNS update.

Because it uses zone transfers, you can simply edit the DNS zone, and have only the changes transferred to the DNS server.

<<less
Download (0.12MB)
Added: 2005-04-26 License: GPL (GNU General Public License) Price:
1649 downloads
DNS name parser 1.2.1

DNS name parser 1.2.1


DNS name parser is a Java utility library for parsing dns names, ip and hw addresses. more>>
DNS name parser is a Java utility library for parsing dns names, ip and hw addresses.

Synopsis

import su.netdb.parser.*;

Parser parser = new Parser();

Hashtable result = parser.parse(str);

System.out.println("string: "+result.get("string"));
System.out.println("hw: "+result.get("hw"));
System.out.println("name: "+result.get("name"));
System.out.println("domain: "+result.get("domain"));
System.out.println("ip_low: "+result.get("ip_low"));
System.out.println("ip_high: "+result.get("ip_high"));

"DNS name parser" is an utility library created to be used in a search application. Given a single input field its function is to differentiate between several types of possible input strings. Namely if it a dns name, IP address (exact, ip range or ip with wildcards) or hardware address. The result of the parsing is a Hashtable with possible keys "string", "hw", "name", "domain", "ip_low" and "ip_high".

<<less
Download (0.008MB)
Added: 2007-07-20 License: GPL (GNU General Public License) Price:
835 downloads
DNS.py 0.4

DNS.py 0.4


DNS.py is a Python module that provides a robust and flexible DNS client implementation. more>>
DNS.py script provides a robust and flexible DNS client implementation.

<<less
Download (0.039MB)
Added: 2007-06-05 License: Python License Price:
879 downloads
Net::DNS::ToolKit 0.29

Net::DNS::ToolKit 0.29


Net::DNS::ToolKit are tools for working with DNS packets. more>>
Net::DNS::ToolKit are tools for working with DNS packets.

SYNOPSIS

use Net::DNS::ToolKit qw(

get1char
get16
get32
put1char
put16
put32
getIPv4
putIPv4
putIPv6
getIPv6
getstring
putstring
dn_comp
dn_expand
parse_char
gethead
newhead
getflags
get_qdcount
get_ancount
get_nscount
get_arcount
put_qdcount
put_ancount
put_nscount
put_arcount
inet_aton
inet_ntoa
ipv6_aton
ipv6_n2x
ipv6_n2d
sec2time
ttlAlpha2Num
collapse
strip
get_ns
gettimeofday
);

$char = get1char($buffer,$offset);
($int, $newoff) = get16($buffer,$offset);
($long, $newoff) = get32($buffer,$offset);
$newoff = put1char($buffer,$offset,$u_char);
$newoff = put16($buffer,$offset,$int);
$newoff = put32($buffer,$offset,$long);
$flags = getflags($buffer);
$int = get_qdcount($buffer);
$int = get_ancount($buffer);
$int = get_nscount($buffer);
$int = get_arcount($buffer);
$newoff = put_qdcount($buffer,$int);
$newoff = put_ancount($buffer,$int);
$newoff = put_nscount($buffer,$int);
$newoff = put_arcount($buffer,$int);
($netaddr,$newoff)=getIPv4($buffer,$offset);
$newoff = putIPv4($buffer,$offset,$netaddr);
($ipv6addr,$newoff)=getIPv6($buffer,$offset);
$newoff = putIPv6($buffer,$offset,$ipv6addr);
($offset,
$id,$qr,$opcode,$aa,$tc,$rd,$ra,$mbz,$ad,$cd,$rcode,
$qdcount,$ancount,$nscount,$arcount)
= gethead($buffer);
$newoff = newhead($buffer,$id,$flags,
$qdcount,$ancount,$nscount,$arcount);
($b,$h,$d,$a)=parse_char($char);
($newoff,$name) = dn_expand($buffer,$offset);
($newoff,@dnptrs)=dn_comp($buffer,$offset,$name,@dnptrs);
$dotquad = inet_ntoa($netaddr);
$netaddr = inet_aton($dotquad);
$ipv6addr = ipv6_aton($ipv6_text);
$hex_text = ipv6_n2x($ipv6addr);
$dec_text = ipv6_n2d($ipv6addr);
$timetxt = sec2time($seconds);
$seconds = ttlAlpha2Num($timetext);
$shorthost = collapse($zonename,$longhost);
$tag = strip($P_tag);
@nameservers = get_ns();
($secs,$usecs) = gettimeofday();

Routines to pick apart, examine and put together DNS packets. They can be used for diagnostic purposes or as building blocks for DNS applications such as DNS servers and clients or to allow user applications to interact directly with remote DNS servers.

<<less
Download (0.20MB)
Added: 2006-07-27 License: Perl Artistic License Price:
1185 downloads
Secleted [ 0 ] software to compare
  • Page: 1 of 5
  • 1
  • 2
  • 3
  • 4
  • 5