in reply to DNS problems with Mail::SPF

unresolvable name: nameserver

That sounds to me as somewhere within your system configuration, or maybe in one of the mails you check, there is the word nameserver, occurring as a value of a nameserver to contact.

Most likely something somewhere is misconfigured, but it's hard to see where, as we don't know your system configurations and the mails you're checking SPF on.

Replies are listed 'Best First'.
Re^2: DNS problems with Mail::SPF
by nifu (Novice) on Aug 01, 2018 at 08:14 UTC
    It is a very strange error. My test mails are OK. I have also tried the script with static IPs and domains. The DNS settings seams to be Okay:
    cat /etc/resolv.conf
    nameserver 80.237.128.144
    nameserver 80.237.128.145
    

    It seems to depend where the line my $spf_server = Mail::SPF::Server->new(); is in the script. It only works when the line is direct after my using directive.
    pass (Mechanism 'ip4:185.82.77.171' matched)

      The filename should be /etc/resolv.conf. If you copy and pasted the command line, maybe you are looking at the wrong file?

        Sorry. Just a typo. The name of the file is correct.
        Sorry, just a typo. The path is correct.