I'd like to automate some common DNS checks that I do regularly. I do tech support, part of my job being to walk customers through setting up various DNS records, including SPF and DKIM. Most of these customers are small to medium sized businesses. The first part of the call is always me doing some dig commands to see what the name servers are, what their current TXT records are. Then when we're done I check again this time checking their DKIM, two TXT records with two hosts.
So working manually, first I do a couple basic checks:
Then again to check our work, I run through everything we've done.
I don't have any experience with Bash scripting but I think that a Bash script would be the right tool for this job. If it were just a list of commands run on the root domain, it'd be easier but there are host names and so on to insert in front of the domain.
Any ideas and code examples on how to automate this process would be greatly appreciated. By the way, my research into dig has already yielded and improvement. I added +noall +answer to a .digrc file meaning dig now only returns the answer not all the extraneous (to me) information.
Thank you.
Last edited by RudiC; 05-11-2016 at 10:44 AM..
Reason: Changed icode tags to code tags.
hey guys, how to add soalris box as a microsoft DNS Client ?
and how to register in the microsoft DNS ??
i managed to query from the DNS server after adding /etc/resolve.conf and editing /etc/nsswitch.conf
but i need to register the soalris server (dns Client) into Microsoft DNS automatically.... (3 Replies)
I have a process that I am trying to provide a solution for and have hit a brick wall and would like some pointers in the right direction.
Basically on a daily basis a report is automatically generated in a CSV format (FIRST.CSV) which includes codes and amounts in the following format:
... (6 Replies)
I'd like to get some opnions on choosing DNS server:
Windows DNS vs Linux BIND comparrsion:
1) managment, easy of use
2) Security
3) features
4) peformance
5) ??
I personally prefer Windows DNS server for management, it supports GUI and command line. But I am not sure about security... (2 Replies)
Hi,
I have a question on how to point the DNS server-1's A-record to second DNS server, which is DNS server-2. So, the computer can access other domain which only listed in the DNS server-2. The scenario is as follow:
http://img689.imageshack.us/img689/6333/12234.png
How to configure this... (4 Replies)
I am trying to setup a CentOS 6.2 server that will be doing 3 things DHCP, DNS & Samba for a very small office (2 users). The idea being this will replace a very old Win2k server. The users are all windows based clients so only the server will be Linux based.
I've installed CentOS 6.2 with... (4 Replies)
Hey Guys,
I'm seeking some assistance in getting this script to run as a cron job for the user oracle.. the script is basically to perform 2 ADRCI checks... see the script below... i'm getting the following error: /export/home/oracle/Daily_Checks/ADRCI_Daily_Checks.sh: syntax error at line 16:... (7 Replies)
Hi ,
I need a script for processing below scenario.
I have to check daily by doing ftp IP to check it is logging or not.
So i want this activity to be automated such that if login succesful i will get "FTP LOGIN SUCCESS" in a log file and if fails i want the error message in the same log... (1 Reply)
Hi,
We have built a new server (RHEL VM)and added that IP/hostname into dns zone configs file on DNS server (Solaris 10). Reloaded the configuration using
and added nameserver into resolv.conf on client. But when I am trying nslookup, its not getting resolved. The nameserver is not able to... (8 Replies)
Discussion started by: snchaudhari2
8 Replies
LEARN ABOUT MOJAVE
net::dns::rr::spf5.18
Net::DNS::RR::SPF(3) User Contributed Perl Documentation Net::DNS::RR::SPF(3)NAME
Net::DNS::RR::SPF - DNS SPF resource record
SYNOPSIS
use Net::DNS;
$rr = new Net::DNS::RR('name SPF spfdata ...');
$rr = new Net::DNS::RR( name => 'name',
type => 'SPF',
spfdata => 'single text string'
);
$rr = new Net::DNS::RR( name => 'name',
type => 'SPF',
spfdata => [ 'multiple', 'strings', ... ]
);
DESCRIPTION
Class for DNS Sender Policy Framework (SPF) resource records.
SPF records inherit most of the properties of the Net::DNS::RR::TXT class.
METHODS
The available methods are those inherited from the base class augmented by the type-specific methods defined in this package.
Use of undocumented package features or direct access to internal data structures is discouraged and could result in program termination or
other unpredictable behaviour.
spfdata
$string = $rr->spfdata;
@list = $rr->spfdata;
$rr->spfdata( @list );
When invoked in scalar context, spfdata() returns the policy text as a single string, with text elements concatenated without intervening
spaces.
In a list context, spfdata() returns a list of the text elements.
COPYRIGHT
Copyright (c)2005 Olaf Kolkman, NLnet Labs.
All rights reserved.
This program is free software; you may redistribute it and/or modify it under the same terms as Perl itself.
Package template (c)2009,2012 O.M.Kolkman and R.W.Franks.
SEE ALSO
perl, Net::DNS, Net::DNS::RR, Net::DNS::RR::TXT, RFC4408
perl v5.18.2 2014-01-16 Net::DNS::RR::SPF(3)