Different DNS replies depending on IP block

I own a service that has mirrors all around the world. I'd like to Bind to respond a DNS request of my A ADDRESSes differently, depending on the IP block that made the request
For instance, from a computer from an ISP provider would have this:
[root@computer1 etc]# host bbs.archlinux.org
bbs.archlinux.org is an alias for archlinux.org.
archlinux.org has address 66.211.213.17
And another person from another ISP would have:
[root@ktk7 etc]# host bbs.archlinux.org
bbs.archlinux.org is an alias for archlinux.org.
archlinux.org has address 208.69.32.230
Anyone has a clue how I could do that ? Thanks in advance

cactus wrote:
With bind it is called 'views'.
you use match-clients (a match element for the view).
http://www.oreillynet.com/pub/a/oreilly … _0501.html (first google result)
you might also do some searching on geodns. there are services that provide this for you (akamai's geodns service for example), and some patches out there for Bind (i believe).
Thanks for the reply. I'm trying to use the views directive but they don't seem to work. Here is an excerpt of my current named.conf:
view "brazil" {
match-clients { 201.17.105.0/24; };
zone "brlink.org" {
type master;
file "/etc/bind/db.brlink.br";
view "international" {
match-clients { any; };
zone "brlink.org" {
type master;
file "/etc/bind/db.brlink.int";
I've used 201.17.105.0/24 only for testing porpuse because I own a server inside this block.
The results I'm getting are this: if in the named.conf the 'view brazil' is the first directive, all DNS requests, no matter where they came from, will be replied with db.brlink.br. If 'view international' is the first directive to be read in named.conf, any IP address will receive it's contents.
What am I missing ? How should I proceed ?
Thanks in advance

Similar Messages

  • GSS4492 provide different IP address depending on conditions

    Hi,
    I am new to GSSs to bear with me.
    We have 2 x GSS4492 configured as active/standby pair.  One exists in datacentre X whilst other exists in datacentre Y.
    We have a new requirement where by a 3rd part company will have a new WAN link connecting to our datacentre X and another to our datacentre Y. The 3rd party company will forward DNS lookups to the GSSs in both datacentres for a specific service - called application A. The GSSs sit behind a firewall in each datacentre. The GSSs will respond to a DNS query from 3rd party company with a NAT address on the firewall (designated as primary for the application) e.g. 10.10.10.10. 3rd party company then connects to the nat address etc. If the application A is not available in primary data centre then the GSSs will return an IP address for service in the other datacentre (nat address) 10.10.20.10. This is standard stuff - as far as I'm aware. 
    But, what they want is to use the same FQDN e.g. 'testing.test.co.uk' but require the GSSs to respond with a different IP address depending on a condition.
    - If application A is up in datacentre X and WAN link to data centre X is up (from 3rd party company) then GSS will respond to FQDN 'testing.test.co.uk' with 10.10.10.11 (local NAT address for service on this local primary datacentre)
    - If application A is up in datacentre X and WAN link to data centre X is down (from 3rd party company) then GSS will respond to FQDN 'testing.test.co.uk'  with 10.10.20.12 (other datacentre NAT address but this will be NAT'd to real address for application A in datacentre X)
    - If application A is down in datacentre X and WAN link to data centre X is up (from 3rd party company) then GSS will respond to FQDN 'testing.test.co.uk' with 10.10.10.12 (i.e. local datacentre NAT address but this is nat'd to real address of backup service in other datacentre i.e. application A in datacentre Y)
    - If application A is down in datacentre X and WAN link to data centre X is down (from 3rd party company) then GSS will respond to FQDN 'testing.test.co.uk' with 10.10.20.11 (backup datacentre Y)
    Can the GSS do this?  If so please indicate how it can be done (by the way the GSSs poll VIPs on ACEs in each datacentre).
    regards
    Mark

    yes. but then i have to go in and set my ip address manually everytime. because the the dhcp on both(work and home routers) just assigns whatever. i want to have a certain IP address depending on where i am, without having to actually tell the computer i'm at work now, or i'm home. because as soon as i walk into my office, i'm connected to the work wireless, so it should know, this address is 10.0.1.10, so the IP address should be 10.0.1.38. when i go home, it automatically connects to my home wireless, so it should look at the address and say, the IP should be this. just seeing if anyone figured how to do that?

  • How to display different Splash Screen depending on the Locale?

    Hi,
    I have a splash screen which is working fine.
    I want to display different spalsh screen depending on the locale the user has.
    Is this possible.
    I can display different Title,Description and the text of the short-cut icon on desktop and startup Menu based on the locale by mentioning it in the JNLP and altering my browser settings. I am not able to use the icon and splash screen corresponding to the specified locale. How to do this?
    EX:
    <information>
    <title> In english</title>
    <description> In english</description>
    <shortcut online="true">
    <!-- create desktop shortcut -->
    <desktop/>
    <menu submenu="My Project in English language"/>
    </shortcut>
    *<icon kind="shortcut" href="images/icon_english.gif"/>
    <icon kind="splash" href="images/splash_english.jpg"/>*
    <!-- locale="nl-NL" specifies dutch -->
    </information>
    <information locale="nl-NL">
    <title> In Dutch</title>
    <description>In Dutch</description>
    <shortcut online="true">
    <!-- create desktop shortcut -->
    <desktop/>
    <menu submenu="My Project in Dutch language"/>
    </shortcut>
    *<icon kind="shortcut" href="images/icon_dutch.gif"/>
    <icon kind="splash" href="images/splash_dutch.jpg"/>*
    </information>
    *Now here i am not getting the splash_dutch screen for the locale "nl-NL"(Dutch) and i am getting splash_english screen.
    Can we acheive this?*

    Hi anjali...
    I have problem with splash screen..
    here is my jnlp file
    <?xml version="1.0" encoding="UTF-8"?>
    <jnlp spec="1.0+" codebase="http://localhost:8080/MyProject">
         <information>
              <title>MyProject1.0</title>
              <vendor>none</vendor>
              <description>Application Launcher For MyProject1.0</description>
              <description kind="short"></description>
              <offline-allowed />
              <icon kind="splash" href="images/Splash_MyProject.jpg" width="560" height="300"/>
         </information>
         <resources>
              <jar href="SwingApplication/mysql-connector-java-5.0.6-bin.jar" />
              <jar href="SwingApplication/MyProject1.0.jar" main="true"/>
              <jar href="SwingApplication/liquidlnf.jar" />
              <j2se version="1.6+" java-vm-args="-Xms32M -Xmx256M " />
         </resources>
         <security>
              <all-permissions/>
         </security>
         <application-desc main-class="com.mobius.ui.MainWindow">
              <argument>production%0%3#com.mysql.jdbc.Driver#MyProject4%jdbc:mysql://10.100.1.89:3306/MyProject4%MyProject%info123#MyProject2%jdbc:mysql://10.100.1.89:3306/MyProject2%MyProject%info123</argument>
         </application-desc>
    </jnlp>my post is in
    http://forum.java.sun.com/thread.jspa?threadID=5298381
    http://forum.java.sun.com/thread.jspa?threadID=5298466
    I am in big problem Help me...
    Edited by: arunnprakash on May 22, 2008 1:28 PM
    Edited by: arunnprakash on May 22, 2008 1:28 PM

  • Can I assign different Spry widgets depending on device?

    Using Fluid Grid Layout, is there a way I can display the same html in a Spry Accordian for phones only and a Spry Tabbed Panel for tablets and desktops?

    The mechanism that makes the Spry Accordion slide up and down when a user click each panel, in the image below, is different than the mechanism that makes a Spry Tabbed Panel switch from panel to panel when a user clicks each tab (image below this one).  This mechanism is called "Widget Behavior: JavaScript code that controls how the widget responds to user-initiated events."  It is my understanding that CSS only controls the look and style of something and not the way it behaves.  Again, I appreciate your attention to this matter but I am looking for a way to display the same html in a Spry Accordion for phones only and a Spry Tabbed Panel for tablet and desktops. This requires that I use different javascript code depending on device. I understand how to change the CSS depending on device.

  • Different DNS domain name

    We have an architecture compose of two gateways and one portal/profile server, the are all respondig under the same DNS domain name, "domainname.ca". The client is looking to installed a third gateway under a different DNS domain name "newdomainname.com", but want to use the same portal/profile server.
    Is this possible, if so how?

    Hello,
    Try to edit the unknown server. After this click "Resolve". Your IP address will appear.
    Click OK and now your server will have an associated IP address.
    Regards.
    Seb.
    Please remember to click “Mark as Answer” on the post that helps you, and to click “Unmark as Answer” if a marked post does not actually answer your question. This can be beneficial to other community members reading the thread.

  • Dynamically configure different DNS server based on user login.

    I've got two young sons and I'm looking to reconfigure the 'Family' desktop to give the older son his own user account.
    I've only recently started with Arch on my personal netbook so the family desktop is still running Ubuntu.  That will likely change next clean install though.
    I'd like to set the DNS to OpenDNS 'family shield' for his usage but allow full access via a different DNS server such as google DNS (for example) for parental use without filtering.
    I'd like this to switch auto magically based on the user login credentials if possible.
    I understand the limitations of DNS filtering but my oldest son has never even heard of DNS much less being able to figure out how to circumvent it yet.  I'll deal with that in several years when it becomes an issue...
    Can anyone point me in the right direction?

    bergersau wrote:Thanks,
    It looks like I might have to set up a squid proxy with Dan's Guardian.  I was hoping for a simpler solution though.
    Dan's Guardian is going to be a whole lot simpler than hacking the system resolver to use different servers for different users.
    You MIGHT be able to hack something with iptables, the NAT table and a DNAT in conjunction with the 'owner' module... Something like:
    Set your "unrestricted" DNS server in /etc/resolv.conf and a rule like below...
    I'll assume you set the Google servers; 8.8.8.8 and 8.8.4.4 and your son's usernames are 'brad' and 'tony'
    iptables -t nat -A POSTROUTING -d 8.8.8.8 -m owner --uid-owner brad -j dnat --to 208.67.222.222
    iptables -t nat -A POSTROUTING -d 8.8.4.4 -m owner --uid-owner brad -j dnat --to 208.67.220.220
    iptables -t nat -A POSTROUTING -d 8.8.8.8 -m owner --uid-owner tony -j dnat --to 208.67.222.222
    iptables -t nat -A POSTROUTING -d 8.8.4.4 -m owner --uid-owner tony -j dnat --to 208.67.220.220
    Untested and I don't guarantee that will work. You could tidy it up and bit using subchains etc, but I'll leave that as an exercise for the reader.... And I'd still recommend a filtering proxy over the above....

  • What is open dns, and why is it blocking my home page?

    I don't know what "open dns" is, but when I try and open my home page, a news site, I get a message that says "This domain has been blocked by your network administrator." This is my own computer, and I didn't block anything. It just started doing this today and goes to http://block.opendns.com/ when I try to open a window. I can still access other sites. I flushed the cache, which didn't change anything.

    Hello g:
    I clicked on that link and got a message that access was blocked by my network administrator. Since I do not have a network administrator, something is bogus.
    Open DNS is explained here:
    http://www.opendns.com/start/
    I used to use it, but have not found it necessary in my own world.
    Somehow something has changed your settings.
    I have not used it, but some people have had success with this software:
    http://www.dnschanger.com/
    Barry

  • Error cluster constant appears different in two locations on a block diagram

    I am a newbie to LabVIEW. I have taken Core 1 & 2 and Machine Vision and I have not com across this before.
    The image on the right is obviously an Error cluster constant used in the block diagram to create an Error cluster and wire it to an error out terminal. As far as I can tell the image on the left is about the same thing, but why does it look different? The different appearance causes raises a concern that there is a difference in behavior that I do not understand. LabVIEW help suggets that both are Error constants. When I create a new error constant, it always ends up appearing like the right image above.  I have not been able to create someting looking like the image on the left.
    Could someone please confirm what the image on the left is on a blck diagram?
    Thanks,
    Bill
    Solved!
    Go to Solution.

    The image on the left is an error cluster control. It has a front panel presence and can be set either via the front panel or through a property node or local variable. The image on the right is an error cluster constant. It is a static value.
    Mark Yedinak
    "Does anyone know where the love of God goes when the waves turn the minutes to hours?"
    Wreck of the Edmund Fitzgerald - Gordon Lightfoot

  • Mac: different Ps plugins, depending ...

    Forgive me but I'm a bit of a newbie when it comes to Mac applications, but please tell me how does the following happen? ... and advise as to remedy ...
    Presumably, I've installed Photoshop correctly, i.e., using the installer and accepting defaults, which creates a Ps app icon in my tray which points at the app in folder: '/Applications/Adobe/Adobe Photoshop CS5.1/'.  I tried TopazLabs plugins, but chose to use Nik plugins  instead, so I followed TL uninstallation instructions and no TL plugins show in '/Applications/Adobe/Adobe Photoshop CS5.1/Plug-ins/'.  Installing Nik puts a 'Google' folder into this same plugins folder. The tray icon will start an instance of Ps with Nik plugins ... all is good ...
    From Lightroom, if I choose to "Edit in" Ps, it will start another instance of Ps, and this Ps shows TopazLabs plugins!  If I create an additional external editor for Lr and point it at the app in the above '/Applications/Adobe/Adobe Photoshop CS5.1/' folder, it will use the already opened instance of Ps that has Nik plugins.  That is, the primary Lr reference to Ps shows Topaz plugins, while the secondary reference to Ps shows Nik plugins(?)
    Even stranger, from Finder if I right-click an image file and choose to open with Ps, it will open yet another instance of Ps that shows TL and Nik plugins(??)
    Also--and I don't know if this behaviour is related--but I commonly see error messages that imply the Ps application has moved(?)
    Please advise ...  TIA 

    Welcome to Apple Discussions
    +Is it possible to configure my (unibody, Leopard) Macbook Pro to output audio to different devices, depending on the application generating the audio?+
    Yes, check out the SoundFlower Audio Routing Utility (freeware).

  • AnyGantt: How to set different bar color depending on data value.

    Need to have different colors for bars in a gantt resource chart.
    The color depends on certain data value not included in the visible part of the chart, so it must be provided 'extra' for the chart in some way without beeing visible.
    Have studied some examples but cannot figure out the mechanism for this, and the procedure to implement it.
    Any ideas?
    Apex 4.2.2
    Regards
    Per.

    Hi Per,
    You mention "+Among the samples I can see that it has been implemented, but not how.+" - in the Information region below the chart that Tony referred to (https://apex.oracle.com/pls/apex/f?p=36648:50) that I've stated the following:
    "The elements of the Timeline region have been customized via the Chart Attributes page, using the following settings: *Custom Colors*: #000000,#00FF00,#0033FF"
    So that's how I applied custom colours to that particular chart. However, that declarative option won't meet your requirements, where the colours you wish to apply are dependent on data not included in the chart series query. You mention "+Now, if I add another column to the statement I get a yellow error message telling that the statement is not valid.+". It is not possible to simply add an additional column to the chart series query. Each supported chart type expects the associated chart series query to use specific syntax - see About Creating SQL Queries for Charts in Chapter 10 of the APEX User's Guide, http://docs.oracle.com/cd/E37097_01/doc/doc.42/e35125/bldapp_chrt.htm#BCEIJJID.
    So to answer your question "+How to add the new value if not providing another column to the graph?+", if you wish to customise your chart to that extent, then you will need to use custom XML. Depending on what exactly you're trying to achieve, this may require the generation of custom data for your chart. If you edit your chart, and take a look at the Custom XML region, you'll notice a substitution string, #DATA#, towards the end of the XML. When a chart is rendered, we use the chart series query to generate the necessary XML to represent the data on the chart, replacing the string #DATA# with the actual XML. The format of the data XML generated for gantt charts uses a bar style called "defaultStyle", and this handles the default appearance of the bars in the timeline region e.g.
    <period resource_id="1" start="2009.03.21 00.00.00" end="2009.09.21 00.00.00" style="defaultStyle"/>You'll see that the 'style="defaultStyle" ' attribute of the data corresponds to a segment of XML outlining what that style is e.g.
    <period_style name="defaultStyle">Now take a look at the Bar Style in Resource Project example in the AnyChart online documentation http://www.anychart.com/products/anygantt/docs/users-guide/bar-style.html#bar-style-application-resource-project. In that particular example, a number of different bar styles are used i.e.
    <periods>
      <period resource_id="server_1" start="2008.07.07" end="2008.07.8" style="Working" />
      <period resource_id="server_1" start="2008.07.8" end="2008.07.12" style="Maintance" />If you need to add a different bar style to particular rows of data on your chart, then you'll need to add new bar style XML for each colour you wish to use in the Custom XML on the Chart Attributes page, and then you'll also need to generate the data XML yourself, applying the necessary bar style to the relevant row of data. I've got an example of how custom data can be generated for a Resource Gantt here e.g. https://apex.oracle.com/pls/apex/f?p=36648:73 but keep in mind that particular example doesn't demo adding different styles to the data...but it can certainly give you an idea of what's entailed in the generation of custom data for your chart.
    I hope this helps.
    Regards,
    Hilary

  • Call different RFC Functions depending on variable

    Hi,
    I have to implement following requirement:
    My program generates a report for the user and the user can choose which data he wants to have.
    Depending on the user decissions, I have to use different RFC - Functions to get the data.
    I have the name of the RFC Function und I want to call the RFC Function with this name dynamically.
    For example:
    rfcName = "Z_FUNC_1";
    rfc = get the object for Z_FUNC_1 somehow. This is my problem
    rfc.execute();
    Is there any way how to solve this?  I know that I can solve this like this, but this is not the flexible way that i want:
    if (whichRFC == 1) {
      Z_Func_1_input rfc = new Z_Func_input();
    rfc.execute();
    Any ideas?
    Best regards,
    Peter

    Dear Peter,
    There are how many RFC models are you going to make? In my opinion it would be  too tedious and redundant as you have to create diifferent models fo each RFC.
    Instead of this you may create a single RFC and in that you can call your required RFC depending on the user selection.
    It will simplify your application as well as your task.
    Hope it helps!!
    Warm Regards
    Upendra Agrawal

  • Different compression amount depending on type?

    Hey guys,
    So I've just zipped up a big session I did in Logic - about 2gb - and used the standard 'compress file' function on OSX to make the .zip.
    Usually when I do this, it will obviously compress the file to a smaller amount but it's never really drastic. In this case, it's compressed it to 490mb - under a quarter of the original amount!
    Does this seem rather odd to anyone? Does it compress differently depending on what it's compressing? When I open the file it seems fine, but worried that something has gone wrong and when I send it to someone it won't work...

    No, it's not odd at all. Some files by their basic nature compress substantially while others will not. I'm not sure why you're concerned since the compressed file decompresses normally. You seem to be worried over nothing.

  • Different package download depending on some criteria?

    For example, I was considering packaging the madwifi driver when another stable release is made (since it is apparently bad form to do it from CVS).  However, it must be compiled for 2.6 and 2.4 kernels differently since it is a kernel module.
    Is there a way to pick versions?  For example, if `uname -r | grep 2.6` contains data (to avoid custom kernels and stuff not being detected), download the 2.6 version, or else the 2.4 version.
    If not, is this why there are no kernel dependent packages?

    It is only complicated because you don't want to change anything about the current system.
    We must trust that the user has a bit of sense, and can work around the obvious failure cases, like booting into a stock kernel only to download the module.  However, giving some degree of autonomy to the process would allow easier upgrades as I have said before.
    I only mentioned abs because it provided an easier way to handle custom kernels - you can ensure the stock kernel has whatever options are required (assuming some are needed), but not with a custom one.
    If you can't have packages be dependent on the kernel package, you don't want to have a "custom kernel" dependency, and you don't want to change pacman, then the only option I see is two versions, module26 and module24, that the user chooses to sync with.

  • Different DNS lookup stratergi for recognized and not recognized root domain

    Firefox DNS lookup stratergy is different if the root domain in the URL is recognized (like .se) or not recognized (like .local). How can I add my selfintroduced root domain in the list of recognized root domains?

    Firefox DNS lookup stratergy is different if the root domain in the URL is recognized (like .se) or not recognized (like .local). How can I add my selfintroduced root domain in the list of recognized root domains?

  • Posting a WT to different GL accounts depending on Payroll area

    My client wants to create a new Payroll area for the UK called say Zx and process some of the existing WT's from IT0015 and technical WT's such as /301 and /302 to different GL accounts to those employees in Payroll area Zy.
    Since as far as I am aware the WT are linked to the same symbolic accounts based on PSG I do not see an option in PPMOD to make this decision based on Payroll area. I have read a bit about using an exit but not sure this is going to meet the requirements and how this actually works in reality - any help would be greatly appreciated.
    Many thanks,
    Dan

    I am not sure if I understand it correctly. But you're saying that you will create new Payroll Area ZX but you want to post IT0015 wage types of employees in payroll area ZY to different GL accounts. So what is the use of ZX? and How it is related in postings?
    Postings always happen based on WT's. PPMOD is used in case you want to post a single WT to different GL's based on ESG.
    Moreover, posting program is also run based on payroll area.
    Arti

Maybe you are looking for