Nslookup Script For Multiple Ip Addresses Linux

NSlookup stands for Name server look up. 4GHz networks and it has poor signal. In this post, I’d like to tell you how to set the Android network preferences on Android devices, that is, IP Address, Netmask, Gateway and DNS. Active Whois returns important information on websites. Normally, you have two DNS servers assigned so that if the primary DNS server fails to respond, then the secondary is used. Examples of nslookup command in Linux. [bash] how to put nslookup result next to ip in file I just make a stat file from my maillog to get all ip and make them unique to find spam pattern and pipe out to a file ips. Files with multiple fields and delimiter: Let us consider a file with multiple fields: $ cat file Linux,20 Unix,30 AIX,25 Linux,25 Solaris,10 HPUX,100 8. ABOUT MX LOOKUP. Linux kernel 2. The results of name or address queries printed by nslookup may differ from those found by other processes that use the Mac OS X native name and address resolution mechanisms. For example: for a computer with a host name ibm1, the hosts file might contain the following entries:. apt-get doesn't work, of course, but I tried finding these with opkg. If you would like to set up IP aliasing on the fly, there are two ways to do it. It also supports lookup of MX or NS DNS records for multiple domains. Domain Name Server (DNS) Configuration and Administration. nslookup google. There are some times which require two IP address to set up so that we can make a Linux box as a router. 1, the fully qualified domain name localhost. How would you translate an IP address into a host name? I am using hotmail and my university address and have it setup to view all of the headers. by David Mertz, Ph. The Internet however, is really based on IP addresses. ifaddr - Enumerate IP addresses on the local network adapters¶. The script gets the IP addresses from a column in CSV file with header "IPaddress". 10; Oracle MySQL 5. If you would like to set up IP aliasing on the fly, there are two ways to do it. To release an IP address, type in the following command: ipconfig /release. in has an IP address 172. Therefore I decided to buy wifi dongle, and was looking for one that can work with Arch Linux. 206 server name test27374-bkp. By default CentOS minimal install does not come with pre-configure network. If this name resolution is slow, then web pages may be slow to load, or timeout. com Next article will be on Linux Dig command. Unfortunately, the old-fashioned Windows NSLookup command-line utility is not all that much fun to use. My laptop does not have the best network card: it works only with 2. Check DNS records on Windows with nslookup. net" or any other address its resolving correct IP address. Using PowerShell to resolve Host names to IP address 18 March 2015 Comments Posted in PowerShell, script, devops. SRV – Records to distinguish the service hosted on specific servers. A single physical Ethernet interface can be configured as multiple virtual interfaces with different IP addresses. In this example, the MX record for ralphsdomainname. You achieve this by configuring one routing table per outgoing interface, each routing table being identified by a number. So I guess my final solution is a lot like Ed's:. If you do not need it, leave both parts out. 206 server name test27374-bkp. This article provides the basic DNS configuration steps necessary to use the Single Client Access Name (SCAN) introduced in Oracle 11g Release 2 RAC. com points to mailserver. nslookup is a command-line tool for network administrator and system administrator that available in many computer operating systems such as linux and windows for querying the Domain Name System (DNS). (For IPv6, the ICMP timestamp request is omitted because it is not part of ICMPv6. The NSLOOKUP utility is a unix tool. How to get an IP address from a server list script by Nik · Published January 29, 2016 · Updated February 1, 2016 Here's how you can get the list of IP addresses, FQDN and Ping status with a simple Powershell server list script. You can replace "google. Usually, an IP address is displayed as a group of numbers, separated by dots: IP address structure and classification. You can also run multiple commands interactively by running nslookup with no options: nslookup. Conversion of a 32bit IPv4 IP address between 4 formats: dotted quad decimal octet string (classic standard notation), decimal (base 10), hex (base 16) and binary (base 2). After that, perform “arp -a” to determine all the computing devices connected to the network. NSlookup stands for Name server look up. The host command works a lot like nslookup by looking up the remote system's IP address. My Script So I put together a little script to read content from a file, set a nic mapping for the selected Customization Specification, clone the VM, and set the appropriate VLAN for the VM. When a Primary Domain Suffix is used, nslookup will only take devolution 3 levels. Here is an example netstat output. Manages virtual IPv4 addresses (Linux specific version) This Linux-specific resource manages IP alias IP addresses. ADDRESS may be specified as a hostname or IP address. If this name resolution is slow, then web pages may be slow to load, or timeout. Examples of nslookup command in Linux. Note that some larger websites will have multiple IP responses for a variety of purposes, ranging from redundancy to distributing load and for DNS purposes. About Latest Posts Michael PietroforteMichael Pietroforte is the founder and editor in chief of 4sysops. I had this video up previously- sorry, I hopefully fixed the resolution problem now. bat file or a VB script file rather than performing an nslookup command on each and every one of the IP addresses. Stream Any Content. If you would like to set up IP aliasing on the fly, there are two ways to do it. nslookup is a command-line tool for network administrator and system administrator that available in many computer operating systems such as linux and windows for querying the Domain Name System (DNS). For other types of domain name records, use NsLookup. Unsurprisingly, nslookup stands for name server lookup. Web servers and other computers that need a consistent point of contact use static IP addresses. When you're curious what the IP Address of a specific hostname might be, you can use a quick PowerShell one-liner to retrieve the information. To cause your machine to consult with a particular server for name lookups you simply add their addresses to /etc/resolv. Since networking hardware such as switches, hubs, and bridges operate on Ethernet frames, they are unaware of the higher layer data carried by these frames [9]. PING - Packet InterNet Gopher, is a computer network administration utility used to test the reachability of a host on an Internet Protocol (IP) network and to measure the total round-trip time for messages…. 165 and a TTL of 279 seconds. The A name must resolve to an IP. Re: nslookup shell script with input and output files ok great! that works well, is it possible to make a tweek request, it should not be more than a quick if statement, I don't know how errors work in nix world yet but if name or ip is resolvable can the file have. ipaddress provides the capabilities to create, manipulate and operate on IPv4 and IPv6 addresses and networks. To check what DNS Server you are using on Linux, simply open up the terminal and do nslookup for any website. Nslookup is a program to query Internet domain name servers. How to match match IP addresses with a lookup. 4 x 10 38 (2 128) unique addresses. PING (Packet Internet Groper) command is used to check the network connectivity between host and server/host. These are mac_address, ip_address and hostname for IPv4, and client_duid, ip_address and hostname for IPv6. ipconfig /release. It is one of the most basic of the network administrative utilities. Running nslookup by hand is fine if I need to look up just one or two sites, but sometimes I found myself with a long list of addresses that I want to look up. 2 would have a resolv. 3 or Redhat 6. Now you can careate hosts record / MX record etc using GUI base DNS MANAGEMENT. Domain and IP bulk lookup tool allows to lookup domain, location, ISP and ASN for multiple hosts (IPs or domains) at once. Depending on your Linux distribution, it can be located in the menu items at the top, or at the bottom of your screen. For this guide I used competely fresh install of Ubuntu linux 17. I should also point out that if multiple IP addresses are assigned to a single server then all of the server's IP addresses will be displayed by NSLOOKUP. 1 is the next hop address and ifname is the exit interface leading to the next hop. Address Resolution Protocol (ARP) exists solely to glue together the IP and Ethernet networking layers. How to script a change to a static IP address or DHCP IP address in Windows using a batch file More and more I find myself needing to temporarily set static IPs on my laptop to access equipment for configuration or management, and changing IP addressing in Windows is easy enough, but I often either forget the settings I need or need to switch. in has an IP address 172. Can someone please help?. 48 and earlier, 5. You can also use nslookup to search for the IP address of a given domain name and for other purposes. nslookup is a powerful network administration command-line tool, available for many of the popular computer operating systems for querying DNS to obtain domain names or IP addresses, mapping or for any other specific DNS Records. I’ve been pleasantly surprised by how simple and easily deployed it is and thought I’d share the details now I. In this short post I will show you how you can quickly add a range of IPs on any RedHat based system (Rhel, Centos, Fedora, etc). In this example, the MX record for ralphsdomainname. Static IP Address. It will output two columns "#, Input, Output" where you will have two rows for each successful nslookup call, one with the hostname, and one with the IP. I used a script I found on this site (see code snip below) to do the ping test, and I think it can provide the information I'd like to have so what I'm looking for is This: Column B has list of hosts Column C IP Column D Speed of response. In the second ip command, we are adding the route 19. The A record stores the host IP address. This command takes as input the IP address or the URL and sends a data packet to the specified address with the message "PING" and get a response from the server/host this time is recorded which is called latency. img -netdev user,id=user. It performs exceptionally well. Some of you might wondering why would we assign multiple IP addresses to single Network card. The one significant difference is that this script logs a second line of output for each IP address scanned. x issue, you may be able to find help at Apple's Website. [bash] how to put nslookup result next to ip in file I just make a stat file from my maillog to get all ip and make them unique to find spam pattern and pipe out to a file ips. Now, you need to know the IP address (or web address) that you can use to get to the computer you want to connect to. You can help protect yourself from scammers by verifying that the contact is a Microsoft Agent or Microsoft Employee and that the phone number is an official Microsoft global customer service number. ★★★Powerful Linux/Windows VPS on US West and East Coast from $2. -l preload : If preload is specified, ping sends that many packets not waiting for reply. Iptables Block Multiple Ip Addresses. name with the rest of that computer's address. To preserve IP Address even after the device reboots, the IP Address configuration should be added to this file. Remove a Reserved IP address. One reason to switch is that ifconfig does not show all details of ip addresses assigned to interfaces - use the ip command instead. To display the IP addresses using the hostname command, use the -I option. Configure IP Address and DNS from Command Line Posted in Windows 10 , Windows 7 , Windows Vista , Windows Server by Steve Sinchak Would you like to configure the IP address and DNS settings of your Windows PC just using the command prompt?. ipconfig /registerdns. I’ve recently been working on an implementation of Virtual Router Redundancy Protocol (VRRP) on Linux using Keepalived to provide IP redundancy for some HA Proxy load balancers. This script pings all the servers from the CSV file. This way all the rules defined in admin table routes traffic through device eth1. in has an IP address 172. This is a simple and very useful Python script for network administrators to monitor the devices on a network by pinging every IP address on a subnet. It is a helpful forensic tool for figuring out which processes and programs are active on a computer and are involved in network communications. Your computer's DNS Server name and IP address will be displayed. Check DNS records on Windows with nslookup. 237 As long as no certificates are involved this is working and afaik not even against any norms or best practices. In my final script, I piped the nslookup command to Select just the "HostName" and "AddressList" since it looks nice, and allows me to see the DNS name if I give it a list of IP addresses, and I can see the IP address if I give it a list of DNS names. IPs are 32 bit numbers represented as 4 8 bit numbers separated by periods. I've changed the return value for failing lookups to a blank string, "", rather than "NotFound", but otherwise it's unchanged. How to get an IP address from a server list script by Nik · Published January 29, 2016 · Updated February 1, 2016 Here's how you can get the list of IP addresses, FQDN and Ping status with a simple Powershell server list script. ipconfig /registerdns. I modified Magoo's answer to output to a CSV file. Understanding the Unix Pipeline. From the initial nslookup, figure out what the IP of your computer's nameserver is. 1 is the next hop address and ifname is the exit interface leading to the next hop. NSLOOKUP and POWERSHELL # and fetches from the output string just the IP address. do you know any powershell command to find live IP address from 192. About this tutorial. nslookup -querytype=mx bbc. without any options, nslookup returns domain name and IP address (both IPv4 and IPv6). Understanding the difference between A name and CNAME records will help you decide. VBScript - Ping multiple ip addresses and machine names What I'd like to do is set up a VB Script to ping the workstations and our printers to see if they are. Re: nslookup shell script with input and output files ok great! that works well, is it possible to make a tweek request, it should not be more than a quick if statement, I don't know how errors work in nix world yet but if name or ip is resolvable can the file have. GitHub Gist: instantly share code, notes, and snippets. WHATS BEST FREE VPN ★ Most Reliable VPN. In addition, it can implement Cluster Alias IP functionality if invoked as a clone resource. The program shows all network devices, gives you access to shared folders, provides remote control of computers (via RDP and Radmin), and can even remotely switch computers off. Usually there will just be "ip:" or "ip4:" listed, however. First create the text file IP-Addresses. In this small tutorial i will explain how to configure static ip address on CentOS 7 minimal. apt-get doesn't work, of course, but I tried finding these with opkg. This article showed how to make use of various Nexus NX-OS command options and operators, how to combine multiple Nexus commands, filter Show commands output, create and execute NX-OS scripts, introduced Python scripting and environment and covered a number of Nexus NX-OS hints and tips to help administrators and engineers make their day-to-day. Net Static Class "system. Configure Static IP Address in Ubuntu 18. How to get the IP address(es) for a domain name. A virtual interface can have IP address of different network than physical interface. -l preload : If preload is specified, ping sends that many packets not waiting for reply. Steps 1) Open the terminal and check network interface file. From the bash man page: The shell treats each character of IFS as a delimiter, and splits the results of the other expansions into words on these characters. Check DNS records on Windows with nslookup. How to find the IP address of your computer. Linux kernel 2. It is tested on Linux, OS X, and Windows. linux cron if your linux install is running a crontab, then you can use a cron job to keep updated we can see this with ps -ef | grep cr[o]n if this returns nothing - then go and read up how to install cron for your distribution of linux. This will bring you to a special command prompt where you can use commands to perform any of the operations listed above. The interactive mode command would be: nslookup set type=mx bbc. systemctl stop NetworkManager. Most operations also require a netmask or a CIDR prefix as. Let’s find out if there are any other IP addresses we should know about:. Shea Silverman and Jacob Bates have recently created a tool called PIP that allows you to obtain the IP of your raspberry pi without even attaching it to a screen, as it installs a script that send your IP address to a server that you can visit with your main PC. If you do not need it, leave both parts out. To configure multiple address on our network interface we will use a loop over all the possible values of addresses within a variable. Nslookup has two modes: interactive and noninteractive. Dynamic DNS and Static DNS services available. To do a nslookup, simply use the below command. by David Mertz, Ph. 165 and a TTL of 279 seconds. Usually, an IP address is displayed as a group of numbers, separated by dots: IP address structure and classification. The format of the hosts file is: SOURCE DOMAIN HOSTNAMES. ‘--bind-dns-address=ADDRESS’ [libcares only] This address overrides the route for DNS requests. ipconfig /registerdns. Still in the before stage the solution to overcome this limitation is by creating multiple Azure public cloud IP addresses and from within the a new Azure load balancer direct traffic to the NetScaler VPX which will still have a single IP with each service having different port. In its simplest form. Appropriate WhoIs server for the given query will be found automatically and all assotiated with domain or IP records are immediately shown on the screen. Configure DNS Client / Nameserver on Linux CentOS Redhat RHEL Ubuntu, Configure DNS Client on Centos Redhat RHEL Fedora Ubuntu Debian, Configure Nameserver. Usually there will just be "ip:" or "ip4:" listed, however. conf - which includes the primary and secondary DNS server IP address for UNIX system, its your own DNS server. I have observed that there are problems with all approaches that use the existence of an IP address to verify that the name being looked up actually exists. Static IP Address. For the purposes of this simple configuration, I will configure the DHCP server to assign a fixed address to the client based on the MAC address. So, to set a static IP in RHEL6 or CentOS 6 follow the steps below. It will look like this: > At this prompt, you can type in a domain name or IP address to query your DNS for its basic information:. Configuring Virtual IP Address in Windows in DHCP mode. Discover why thousands of customers use hackertarget. It performs exceptionally well. Most of the email addresses from a spam host are a fake. That's it! So simple it is! Now, have a look on the script. The Email Checker allows you to test the validity and reachability of an email address. apt-get doesn't work, of course, but I tried finding these with opkg. Now, you need to know the IP address (or web address) that you can use to get to the computer you want to connect to. A Linux machine -or virtual machine-, can require having multiple ethernet cards, each on a separate LAN. Re: Finding all DNS aliases for a host using nslookup/dig/host or similar command In looking into this question off and on today, the only way I've been able to get the alias (CNAME record) from nslookup or nsquery is to use the alias as the argument instead of the hostname or IP address. On multi-homed hosts (those with more than one IP address), this option can be used to force the source address to be something other than the IP address of the interface the probe packet is sent on. Understanding how ARP works can allow you to do many useful things. The functions and classes in this module make it straightforward to handle various tasks related to IP addresses, including checking whether or not two hosts are on the same subnet, iterating over all hosts in a particular subnet, checking whether or not a string represents a valid. An easy way to get the IP address(es) corresponding to a domain name is to add the "+short" option to your dig command. For example: for a computer with a host name ibm1, the hosts file might contain the following entries:. This command lists all network interfaces on the system, so take note of the name of the interface for which you want to change the IP address. When you first start NSLookup it will query your local DNS server. tcpip to start the TCP/IP daemons for your configuration. Basically arp is the protocol which stands for Address Resolution Protocol. 227 You can use this script,. 4 kernel may use ipchains or iptables but not both. Make sure that you have a valid IP address on your network. This can be helpful to administrators to remove unnecessary hostname records and reduce ambiguous name resolution. If we are unable to resolve your Mac OS X 10. "-all " is the part of the record that indicates what is recommended to do if the sending IP address does not match any of the ones in the record. SmartConnect Basic. Basic nslookup loops for Windows and Linux. You achieve this by configuring one routing table per outgoing interface, each routing table being identified by a number. With this command, we can translate names into IP Addresses and vice versa. Many linux boxes are loaded with command arp. localdomain. NsLookup for Bulk of Servers\IP addresses Run NsLookup for Bulk of Servers\IP addresses instead of running it for individual host(s)If you have multiple hosts IP's that need to be identified instead of lookup multiple times upload the IP's in notepad and run below PS script. From the bash man page: The shell treats each character of IFS as a delimiter, and splits the results of the other expansions into words on these characters. ca [email protected] ‘--bind-dns-address=ADDRESS’ [libcares only] This address overrides the route for DNS requests. This article describes how to use the dig and nslookup tools to test DNS settings. localdomain, and the host name localhost. New SpeakUp Backdoor Trojan targets servers running six different Linux distributions and macOS by exploiting a number of known security vulnerabilities, while also managing to evade all anti. Information Technology, How To Guides. NirSoft's DNSDataView is a free DNS lookup tool with a graphical user interface (GUI) for Windows that can replace the nslookup command in most use cases. You can determine the IP address or addresses of your Linux system by using the hostname, ifconfig, or ip commands. Programming IP Sockets on Linux, Part One. 1" which indicates that this is the ip address for the MX record (email server). The IP addresses are listed in a tab delimited text file called ips. The Rasp Pi needs a static IP address to work as a DHCP server. Do you want to lookup the hostname of another machine by using the IP address? nslookup IP. "-all " is the part of the record that indicates what is recommended to do if the sending IP address does not match any of the ones in the record. -l preload If preload is specified, ping sends that many packets not waiting for reply. Here is how to bind multiple IP addresses to a single network interface on CentOS. To do a nslookup, simply use the below command. 2015-05-28 update: Some of the old repos mentioned in this article are gone. In the admin panel, when I get notified of new updates to be installed, installation of wordprewss, plugins and themes seems successful but is not performed. currently, i am thinking of piping the list of ip addresses into a bash script, using nslookup in a loop then writing out to a temp file, and using grep/cut/sed to extract the domain name and write it to a final report file. How to find the IP address of your computer. Basic nslookup loops for Windows and Linux. Your app needs to be able to handle this. Does anyone know a script or util to take a list of IP and run NSLOOKUP on them ? thanks in advance utility or script to do an nslookup of a list of IPs Experts Exchange. The host has a changing IP address (or none if you have no network access). This value. Multiple IP addresses on different subnets (Linux) Mar 23rd, 2014 It's sometimes necessary to add a second IP address to a server for a new service, such as when configuring a STUN server (which requires two public IP's). 0 -device e1000,netdev. The default Server is set to your local DNS, the Address will be your local IP. conf because nothing will overwrite your changes if you reboot or restart networking services. So when you type nslookup www, it will be matched to www. And presto! Now you can use real names that resolve inside the VPC for your EC2 instances! In the screenshot below, you can see that I did an nslookup for the Route 53-managed name, which resolved to a CNAME, which resolved to the internal IP address in the subnet, courtesy of the VPC DNS server. You can also use the dig command with the -x option to do a reverse DNS lookup. Address Resolution Protocol (ARP) exists solely to glue together the IP and Ethernet networking layers. how to get one. Steps 1) Open the terminal and check network interface file. You might try using the IP address to run an ssh command at PC2. The IP address is used to identify it to the world and plays an important part in the TCP/IP protocol. If you have ever added multiple IP addresses to a single Windows server, going through the graphical interface is an incredible pain as each IP must be added manually, each in a new dialog box. The script is supposed to let an administrator know when a user has been accessing the system without permission. This post includes a sample Windows PowerShell script that will generate a CSV file of host IP addresses based on an input list of host names. For the second parameter, type the name or IP address of a DNS name server. 2 would have a resolv. Note that "static" here means either a live IP address and or a statically assigned IP address on your LAN, such as 192. This can be helpful to administrators to remove unnecessary hostname records and reduce ambiguous name resolution. I am trying to use NSlookup to get the DNS name for my unattend. com: nslookup -q=TXT _spf. Web servers and other computers that need a consistent point of contact use static IP addresses. 0 -device e1000,netdev. The ANSWERS section displays one record with an IP address of 212. 255” if your IP is 192. IPsrcaddr: Manages the preferred source address for outgoing IP packets Resource script for IPsrcaddr. That's it! So simple it is! Now, have a look on the script. Basically, DNS maps domain names to IP addresses. One question asked of me recently was “Is there a way to set the IP address of some windows virtual machines with PowerCI ?”. Understanding how ARP works can allow you to do many useful things. Re: nslookup shell script with input and output files ok great! that works well, is it possible to make a tweek request, it should not be more than a quick if statement, I don't know how errors work in nix world yet but if name or ip is resolvable can the file have. The IP address is displayed in the A record, and is 199. Using multiple NICs on Linux. Net Static Class "system. Locate individuals or organizations with postal address including country for the domain or IP address holder, all with a single click! The netstat, trace route and nslookup included too. And to top that, not all IP addresses will be reachable from off the machine. As shown in the image below. Learn the best practices for a successful Linux-based DHCP server and DHCP client configuration and deployment. SS If not please rephrase you question, and the group would be happy to help. 1 localhost localhost. com to an IP address. The suite of tools are used daily by systems administrators, network engineers, security analysts and IT service providers. Each machine, which is connected to the Internet, has its own IP address. This will bring you to a special command prompt where you can use commands to perform any of the operations listed above. So when you type nslookup www, it will be matched to www. Multiple issues have been discovered that make it possible to disclose internal IP addresses of remote Microsoft Exchange environments. I wanted to run a dos cmd 'tracert' for each hostname in column a and return the output into my spreadsheet in another column. In this example, the MX record for ralphsdomainname. The problem is that a host could have lots of network interfaces, and an interface could be bound to more than one IP address. [!INCLUDE virtual-network-multiple-ip-addresses-scenario. These are tools and functions to support IP network systems test and evaluation. Do you want to lookup the hostname of another machine by using the IP address? nslookup IP. nslookup – 192. by sk · Published March 31, 2016 · Updated March 14, 2019. From the initial nslookup, figure out what the IP of your computer's nameserver is. List out multiple addresses. In addition, it can implement Cluster Alias IP functionality if invoked as a clone resource. Also Discover HP iLO IP address in Linux. In this tutorial, I demonstrated how you can block unwanted IP addresses using a powerful tool. Address Resolution Protocol (ARP) exists solely to glue together the IP and Ethernet networking layers. 206 server name test27374-bkp. Batch file to query IP addresses of server names listed in a text file (using NSLOOKUP & Ping) December 4, 2014 by joe0 Following guide shows how you can query IP addresses of servers listed in a text file by using NSLOOKUP or Ping. ipconfig /flushdns. This article will introduce the concepts of DNS and three commands with which you can examine DNS information: host, dig and nslookup. In addition, it can implement Cluster Alias IP functionality if invoked as a clone resource. (d) Use nslookup to find a Web server that has multiple IP addresses. NsLookup for Bulk of Servers\IP addresses Run NsLookup for Bulk of Servers\IP addresses instead of running it for individual host(s)If you have multiple hosts IP's that need to be identified instead of lookup multiple times upload the IP's in notepad and run below PS script. sometimes you have to set a static IP Address for some VPN Clients. "-all " is the part of the record that indicates what is recommended to do if the sending IP address does not match any of the ones in the record. SRV – Records to distinguish the service hosted on specific servers. This is likely to be your router or Internet Service Provider's DNS servers. I have an idea what commands to use, but putting it together is hard. To do a nslookup, simply use the below command. This not only means that the IP address will change but the default gateway will also. An IP address (internet protocol address) is a numerical representation that uniquely identifies a specific interface on the network. Finally, go ahead and create a single iptables rule to block them all! Summary. Multiple IP addresses on Amazon EC2 By: Jurian July 9th 2012. bat file or a VB script file rather than performing an nslookup command on each and every one of the IP addresses. How can I configure DNS on a DC with two IP addresses? Sometimes it's unavoidable to run an Active Directory domain controller (DC) on hardware that is configured with two network cards (NICS).