nslookup error-** server can't find servername.dbd.local: NXDOMAIN
Dear Team,
I am quite new to linux env. I have configured ADFS,DNS on AWS EC2- windows and I am trying to federate AD users using SAML in AWS via CLI.
I am getting below error -
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='servername.dbd.local', port=80): Max retries exceeded with url: /idp/profile/SAML2/Unsolicited/SSO?providerId=urn:amazon:webservices (Caused by <class 'socket.gaierror'>: [Errno -2] Name or service not known)
As suggested on few forums, I tried to access above domain by using nslookup but it is also giving me an error -
nslookup servername.dbd.local
Server: 172.31.0.2
Address: 172.31.0.2#53
** server can't find servername.dbd.local: NXDOMAIN
Below are my files-
cat named.conf
// This is the primary configuration file for the BIND DNS server named.
//
// Please read /usr/share/doc/bind9/README.Debian.gz for information on the
// structure of BIND configuration files in Debian, *BEFORE* you customize
// this configuration file.
//
// If you are just adding zones, please do that in /etc/bind/named.conf.local
include "/etc/bind/named.conf.options";
include "/etc/bind/named.conf.local";
include "/etc/bind/named.conf.default-zones";
-------------
cat named.conf
// This is the primary configuration file for the BIND DNS server named.
//
// Please read /usr/share/doc/bind9/README.Debian.gz for information on the
// structure of BIND configuration files in Debian, *BEFORE* you customize
// this configuration file.
//
// If you are just adding zones, please do that in /etc/bind/named.conf.local
include "/etc/bind/named.conf.options";
include "/etc/bind/named.conf.local";
include "/etc/bind/named.conf.default-zones";
root@ip-172-31-6-12:/etc/bind# ^C
root@ip-172-31-6-12:/etc/bind# cat named.conf.default-zones
// prime the server with knowledge of the root servers
zone "." {
type hint;
file "/etc/bind/db.root";
};
// be authoritative for the localhost forward and reverse zones, and for
// broadcast zones as per RFC 1912
zone "localhost" {
type master;
file "/etc/bind/db.local";
};
zone "127.in-addr.arpa" {
type master;
file "/etc/bind/db.127";
};
zone "0.in-addr.arpa" {
type master;
file "/etc/bind/db.0";
};
zone "255.in-addr.arpa" {
type master;
file "/etc/bind/db.255";
};
-----------------
cat resolv.conf
# Dynamic resolv.conf(5) file for glibc resolver(3) generated by resolvconf(8)
# DO NOT EDIT THIS FILE BY HAND -- YOUR CHANGES WILL BE OVERWRITTEN
nameserver 172.31.0.2
search eu-central-1.compute.internal
Please suggest me on above issue ...
|