Scripting

Verifying DNS mappings

An improperly configured DNS setup can be really annoying. You want to make sure that your mappings work both ways: Each hostname should resolve to an address, and that address ought to resolve back to the proper hostname. If an address on your subnet(s) has been assigned a reverse pointer to a hostname, that hostname […]

Read More
Linux

Linux routing magic

Suppose you’re setting up a test environment, and you want a server to be able to handle some improbably large number of IP addresses, like a /16 or even larger. You could just write a script to add them all one at a time, or you could use this little shortcut and add the entire […]

Read More
Scripting

whatmask

whatmask 192.168.64/27 ———————————————— TCP/IP NETWORK INFORMATION ———————————————— IP Entered = ………………: 192.168.55.64 CIDR = ……………………: /27 Netmask = …………………: 255.255.255.224 Netmask (hex) = ……………: 0xffffffe0 Wildcard Bits = ……………: 0.0.0.31 ———————————————— Network Address = ………….: 192.168.55.64 Broadcast Address = ………..: 192.168.55.95 Usable IP Addresses = ………: 30 First Usable IP Address = …..: 192.168.55.65 Last […]

Read More