From owner-freebsd-questions@FreeBSD.ORG Fri Apr 25 14:50:45 2003 Return-Path: Delivered-To: freebsd-questions@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 0561737B405 for ; Fri, 25 Apr 2003 14:50:45 -0700 (PDT) Received: from chimera.noanet.net (chimera.noanet.net [66.119.192.4]) by mx1.FreeBSD.org (Postfix) with ESMTP id 5F3B943FAF for ; Fri, 25 Apr 2003 14:50:44 -0700 (PDT) (envelope-from mksmith@noanet.net) Received: from [64.81.189.2] (mks733.mks.noanet.net [64.81.189.2]) by chimera.noanet.net (8.12.8p1/8.12.8) with SMTP id h3PLohUJ034761; Fri, 25 Apr 2003 14:50:44 -0700 (PDT) User-Agent: Microsoft-Entourage/10.1.1.2418 Date: Fri, 25 Apr 2003 14:50:43 -0700 From: "Michael K. Smith" To: James Lee , FreeBSD Questions Message-ID: In-Reply-To: <000701c30b3d$b2d722a0$0100a8c0@xp> Mime-version: 1.0 Content-type: text/plain; charset="US-ASCII" Content-transfer-encoding: 7bit Subject: Re: Update ---- Sendmail not working from command line. X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 25 Apr 2003 21:50:45 -0000 On 4/25/03 8:16 AM, "James Lee" wrote: > Dig gives no resolve for localhost. There is no answer. > > # dig localhost > > ; <<>> DiG 8.3 <<>> localhost > ;; res options: init recurs defnam dnsrch > ;; got answer: > ;; ->>HEADER<<- opcode: QUERY, status: NXDOMAIN, id: 2 > ;; flags: qr rd ra; QUERY: 1, ANSWER: 0, AUTHORITY: 1, ADDITIONAL: 0 > ;; QUERY SECTION: > ;; localhost, type = A, class = IN > > ;; AUTHORITY SECTION: > . 47m31s IN SOA A.ROOT-SERVERS.NET. > NSTLD.MYISP-GRS.COM. ( > 2003042500 ; serial > 30M ; refresh > 15M ; retry > 1W ; expiry > 1D ) ; minimum > > > ;; Total query time: 102 msec > ;; FROM: mydomain.com to SERVER: default -- 208.98.98.98 > ;; WHEN: Fri Apr 25 09:44:49 2003 > ;; MSG SIZE sent: 27 rcvd: 102 > > I changed my domain to mydomain.com in the FROM row. I also changed the > name of my ISP in the AUTHORITY SECTION. When I do a dig the MX record > of my domain it does resolve to my IP address. > That would be "dig @localhost" which will only return something if you are running a DNS server locally. This is the response on a machine *not* running DNS: -bash-2.05b$ dig @localhost ; <<>> DiG 8.3 <<>> @localhost ; (2 servers found) ;; res options: init recurs defnam dnsrch ;; res_nsend to server localhost ::1: Connection refused This one is: hydra$ dig @localhost ; <<>> DiG 8.3 <<>> @localhost ; (1 server found) ;; res options: init recurs defnam dnsrch ;; got answer: ;; ->>HEADER<<- opcode: QUERY, status: NOERROR, id: 6 ;; flags: qr rd ra; QUERY: 1, ANSWER: 13, AUTHORITY: 0, ADDITIONAL: 1 ;; QUERY SECTION: ;; ., type = NS, class = IN ;; ANSWER SECTION: . 5d23h4m43s IN NS G.ROOT-SERVERS.NET. . 5d23h4m43s IN NS H.ROOT-SERVERS.NET. . 5d23h4m43s IN NS I.ROOT-SERVERS.NET. . 5d23h4m43s IN NS J.ROOT-SERVERS.NET. . 5d23h4m43s IN NS K.ROOT-SERVERS.NET. . 5d23h4m43s IN NS L.ROOT-SERVERS.NET. . 5d23h4m43s IN NS M.ROOT-SERVERS.NET. . 5d23h4m43s IN NS A.ROOT-SERVERS.NET. . 5d23h4m43s IN NS B.ROOT-SERVERS.NET. . 5d23h4m43s IN NS C.ROOT-SERVERS.NET. . 5d23h4m43s IN NS D.ROOT-SERVERS.NET. . 5d23h4m43s IN NS E.ROOT-SERVERS.NET. . 5d23h4m43s IN NS F.ROOT-SERVERS.NET. ;; ADDITIONAL SECTION: J.ROOT-SERVERS.NET. 6d23h4m43s IN A 192.58.128.30 ;; Total query time: 2 msec ;; FROM: hydra.noanet.net to SERVER: localhost 127.0.0.1 ;; WHEN: Fri Apr 25 14:10:33 2003 ;; MSG SIZE sent: 17 rcvd: 244 -- Michael K. Smith NoaNet 206.219.7116 (work) 206.579.8360 (cell) mksmith@noanet.net http://www.noanet.net