Outgoing IP address

Network Protocols


  • 1. bind9.4
    I have: FreeBSD 5.4-RELEASE BIND 9.4 In logs I see strings like: client X.X.X.X#55119: RFC 1918 response from Internet for client X.X.X.X#3536: RFC 1918 response from Internet for client X.X.X.X#58522: RFC 1918 response from Internet for The question - how BIND knows, that he placed in Internet or LAN? -- Yours sincerely, Vasilyev Igor

Outgoing IP address

Postby Scott Baker » Wed, 27 Aug 2008 00:19:42 GMT

My bind server has two IPs on the primary eth0 interface. Bind listens on
the secondary IP address, but when it queries external servers it uses the
primary address. Is there a configuration option to force all outgoing DNS
traffic to use that secondary IP address?

Scott Baker - Canby Telcom
RHCE - System Administrator - 503.266.8253

Re: Outgoing IP address

Postby Andrey G. Sergeev (AKA Andris) » Wed, 27 Aug 2008 00:28:43 GMT

Hello Scott,


query-source address your-ip-address port *;

Note the "port *" portion. This is to use a random port when making queries.


Yours sincerely,

Andrey G. Sergeev (AKA Andris)      http://www.**--****.com/ 

Similar Threads:

1.Setting the outgoing IP-Address

Hi all,

I'm probably missing something easy, but I have problems in choosing which
IP-Address should be used for outgoing packets (read: I don't know how to do
it). Here is the scenario:

A debian 3.0 machine with 3 ethernet interfaces, eth0 connected to the local
network, eth1 connected to provider_A using the ip-address and
eth2 connected to provider_B using the ip-address

I am moving from provider_A to provider_B and while the cached DNS-Entries
on some machines in the internet still point to the machine should
respond to both network interfaces, while the defaultroute is set to eth2.

A ping to from outside works fine, but a ping to enters
the machine from eth1 and the echo_reply leaves through eth2 *BUT* using as source address for the packet.

Since is not within the network of provider_B, his routers throws
the packet away, so my ping to won't be answered.

Is there some way to tell the IP-stack to use the address of the outgoing
interface as source under all circumstances, even if the packet is a reply
to a packet on another interface?.



2.Outgoing SMTP Source IP Address

3.Smart Host Relay, No DNS, outgoing mail does not contain local host IP Address

Hi All,

I am trying to configure sendmail to use smart host (MS exchange; IP:
So, no need to use DNS, just blindly deliver all mails to mail gateway
(smart host).
Smart host works ok but I need help for:

1. how to swich off sendmail dns lookups

2. outgoing mail to NOT contain local host IP address/domain. It could
be only but not real domain in outgoing mail:

Basicly I want to remove all information about originating host
(security requirements).


1.    May 15 12:45:32 oraprod sm-mta[18836]: [ID 801593 mail.info]
l4F8jVYt018834: to=< XXXX@XXXXX.COM >,
ctladdr=< XXXX@XXXXX.COM > (912/14), delay=00:00:01,
xdelay=00:00:00, mailer=smtp, pri=120302, relay=[] [],
dsn=2.0.0, stat=Sent
( < XXXX@XXXXX.COM > Queued mail
for delivery)

2.    Message-Id:

Thank you in advance,


4.bind outgoing mail connects to virtual ip address?

5.How to select IP address for outgoing packets?

For reasons which are not important here, I have a linux system (SuSE
9.3, if that makes any difference) which acts as the NAT router for a
LAN. This has 2 NICs, one of which connects to an ADSL router which
presents a /29 (the interface of this router is also using an address
within the /29)[1], the other connects to the internal LAN. All but 1 of
the 'external' addresses are NAT'd to various systems/services on the
LAN, with one of the external addresses being 'reserved' for services
running on the Linux system itself. In order to do this I have had to
associate 5 of the /29 addresses with the 'external' NIC using the
iproute2 tools.

I have no problems with routing incoming packets to the correct
system, nor with setting the correct outgoing IP address (using
iptables 'nat' table) for connections originating from other systems
on the LAN. 

However I have been unable to force outgoing connections from the
Linux system to use the IP address which I want. For most things this
does not matter but I have the requirement to set up a VPN, which
requires fixed endpoint addresses, from this system. I have tried
setting the source address in the 'ip route' command, but this has no
effect. I tried setting SNAT in the iptables 'nat' OUTPUT table, but
SNAT is not valid in that table.

[1] I know that this is not the best setup, but the ISP supplied the
ADSL router and we do not have access to change its configuration.


7. Unable to acquire IP Address or DNS, however Manual IP allows IP-IP browsing

8. IP ADDRESSING(http://mynetworkplanet.blogspot.com/2009/07/ip-address.html)

Return to Network Protocols


Who is online

Users browsing this forum: No registered users and 56 guest