Changing DNS settings via /usr/libexec/changeDirData.pl

I am trying to correct a DNS problem on my Snow leopard server install and was instructed by an Apple engineer to use /usr/libexec/changeDirData.pl to globally search and replace on the system to change all instances of the DNS name.
I checkout the man page for changedirdata and it seems pretty straightforward. However, when I try to run it I get the following error:
sudo sh /usr/libexec/changeDirData.pl -i -s <MY SERVER IP> -u diradmin -o <OLD DNS NAME> -n <NEW DNS NAME>
/usr/libexec/changeDirData.pl: line 3: use: command not found
/usr/libexec/changeDirData.pl: line 4: use: command not found
/usr/libexec/changeDirData.pl: line 5: syntax error near unexpected token `('
/usr/libexec/changeDirData.pl: line 5: `use Net::LDAP::Constant qw( LDAPCONTROLPAGED );'
Is there something up with Perl here?

it's a perl file, and should be an executable.
get rid of the sh
run it like this
sudo /usr/libexec/changeDirData.pl -i -s <MY SERVER IP> -u diradmin -o <OLD DNS NAME> -n <NEW DNS NAME>

Similar Messages

  • WRT54G v8: Unable to change some settings via the browser interface

    I have a WRT54G V8 router which I'm trying to set up as a wireless access point.
    I purchased it some time ago and flashed the firmware to version 8.00.2. I see there
    is a newer firmware version available, and I'm going to try flashing that to see if it
    helps, but wanted to ask here first.
    The problem is that when I connect to the router using a web browser, I can see
    the administration pages, and even change most settings, but some settings
    just snap back to their previous values.
    For example, I go to Setup -> Advanced Routing, and change Operating Mode
    from Gateway to Router. When I do, I see it changes to Router, then I see it
    talking to the HTTP server, and then it changes back to Gateway.
    This also happens in other areas, like trying to enable MAC address filtering -
    it won't let me enable it, and the Security Mode setting (under Wireless -> Wireless
    Security) - It won't let me select WPA2 Personal, among others.
    Note that I've had this router for a while, but decided to change how it was configured
    today, so I started by pressing and holding the reset button for >5sec to reset it to
    factory defaults and went from there.
    I'm assuming there must be some settings which are preventing these from taking,
    but I can't imagine any setting which should prevent me from enabling the MAC
    address filtering.
    Just in case this matters, I have the router connected to my in-home network using
    one of the 4 Ethernet ports, and don't have anything plugged into the Internet port.
    Also, I have turned off the DHCP server, and assigned a static IP address to the
    router. This is the IP I'm using to connect to the router's administrative pages via
    a browser running on one of the other PCs on my in-home network.
    The wireless access point is working, in that I can connect to my in-home network
    with my wireless client (laptop). 
    Can anyone help me understand what I'm doing wrong?
    Thanks,

    Thanks, Yes, I did reset the router. Just to clarify:
    - I was having the problem where making changes to some settings would cause the settings to revert back to the original settings. In fact, the settings would switch back before I would have a chance to click on the Save Settings button. Clicking on the button after the settings changed back, of course, saved the original setting. For example, I would click on a drop-down control to change a setting, see the browser communicate with the HTTP server, then the drop-down would just snap back to the original value. It wouldn't allow me to change it to a different value.
    - I reset the router, including holding the reset button for >5 seconds to force a full-reset. This didn't help.
    - I attempted to update the firmware with the latest version for my router (yes, I double-checked that I had the correct version for my router/version). This failed with a strange message and required that I do another reset of the router.
    It was after this failed attempt at the update that the problem went away. Now, I am able to change these particular settings and the changes stick.
    At this point, I updated the firmware to the latest version and it worked. After this, I am still able to make all the necessary setting changes and the router is performing as I need.
    Thanks for all the help,

  • "Unkown Error (-50)" when trying to change iPod settings via iTunes

    Hello everyone.
    I got an 5.5 iPod Video (30gb) for christmas and I can't update the name of the Ipod nor change the settings for music, TV shows, movies, podcasts, pictures or even reset it!
    I can however sync music, tv shows, movies and pocasts (not pictures).
    So I called Apple the other day and told them about my problem. The guy I was talking to told me that the only option avaible was to send the iPod to Apple and have them repair it. And so I did. It came back today with 1.2 update installed, instead of 1.2.1 which I used before I had the iPod sent for repair. The enclosed papers said that they (Apple) could not find any problems on the iPod itself and it's batterys and that "it met Apples specifications for acceptable performance, usablity and/or functionality."
    Yeah well... It doesnt. I'm using a PC with Windows XP, Service Pack 2 and I have USB 2.0. I have the latest version of iTunes and I had the latest firmwire update for my Ipod (1.2.1) and it didn't work.
    When I first plugged the iPod in today when it had version 1.2 installed it worked, but the next time I plugged it in.. well, it didnt work. So right now I'm using 1.2.
    I've tried re-installing iTunes and restoring the iPod via both iTunes and on the iPod itself. Nothing works. Can someone here help me out?
    Btw. I'm using an iPod dock.

    Edit: I am able to change settings WHILE my library is beeing synced...

  • Change DNS settings in Solaris 11

    Where do I need to go to change the DNS settings on a Solaris 11 server?

    I'd like to refer you to the documentation:
    http://docs.oracle.com/cd/E23824_01/html/821-1455/dnsref-31.html#dnsref-36
    Settings are handled through the SMF repository, using the "svccfg -s network/dns/client" command.
    If this does not give you the answer you are looking for, then I recommend viewing the rest of the document.
    -- Alan

  • Changing DNS settings and OD accounts

    We were having problems with our server, and found that it was because of DNS settings. We now have a FQDN, but nobody can log on. How do I import the users and groups to the new domain?

    Check to make sure that your DNS is set up properly.
    In terminal:
    sudo changeip -checkhostname
    Also...  Have you bound the clients to the server?  You have to do this in the System Preferences under Accounts in 10.6 and higher.
    It's in the Directory Utility in 10.5
    Once the client computers are bound to the server, you can start creating your User list in Workgroup Manager.
    Unfortunately, there isn't a super easy way to automate this.  You have to set up your groups, set up your group preferences (if you want any), add your users, and apply them to the groups.
    There are some tricks to making this easy, ie set up a user template...  That way all you have to do is type the user names and passwords (if you want them).
    HTH
    -Graham

  • Changing Hyperlink Settings via JS

    Hi there,
    i have a bunch of InDesign CS3 documents where i need to change the zoom-setting for all hyperlinks.
    how can i access the zoom-setting of all selected hyperlinks via javascript and set it to "fit to window".
    i hope someone can point me to the right direction here.
    cheers,
    christian

    yes, sorry. here we go:
    doc = app.activeDocument;
    var hyLinkPAGE=doc.hyperlinkPageDestinations;
    for(var p=0; p < hyLinkPAGE.length; p++)
         hyLinkPAGE[p].viewSetting=HyperlinkDestinationPageSetting.FIT_WINDOW;

  • My itunes library when using my phone is in Japanese, and the currency is set to yen. I have changed the settings via the flag at the bottom of itunes on windows but its only changed on my windows itunes.

    The currency on my itunes store when using my iPhone is in Japanese yen, the menu is in Japanese too. I have changed the country using the flag at the bottom of itunes for windows, I have synced my iphone and restarted it, but it still has not changed. I also cannot set up a payment method for itunes as it keeps asking for japanese bank details? Help!

    The currency on my itunes store when using my iPhone is in Japanese yen, the menu is in Japanese too. I have changed the country using the flag at the bottom of itunes for windows, I have synced my iphone and restarted it, but it still has not changed. I also cannot set up a payment method for itunes as it keeps asking for japanese bank details? Help!

  • Change firewall settings via terminal

    hi,
    I've got an old Powerbook that has a broken screen. Luckily I can access all my files and also ssh into the computer. Is it possible to open the firewall port 7001 via the command-line so I can use something like Desktop Transporter?
    Thanks for any reply.
    Gert
    iBook G4   Mac OS X (10.4.5)  

    Yes, of course. First question, though: why not take the firewall down altogether?
    The thing is, ipfw uses sets of rules, and the order is significant, so it's not just adding a rule, it's where you add the rule. So, for example, if I see:
    <pre>
    $ sudo ipfw list
    02000 allow ip from any to any via lo*
    02010 deny ip from 127.0.0.0/8 to any in
    02020 deny ip from any to 127.0.0.0/8 in
    02030 deny ip from 224.0.0.0/3 to any in
    02040 deny tcp from any to 224.0.0.0/3 in
    02050 allow tcp from any to any out
    02060 allow tcp from any to any established
    02065 allow tcp from any to any frag
    02070 allow tcp from any to any dst-port 22 in
    02080 allow tcp from any to any dst-port 548 in
    02090 allow tcp from any to any dst-port 427 in
    02100 allow tcp from any to any dst-port 80 in
    02110 allow tcp from any to any dst-port 427 in
    02120 allow tcp from any to any dst-port 443 in
    02130 allow tcp from any to any dst-port 21 in
    02140 allow tcp from any to any dst-port 139 in
    12190 deny tcp from any to any
    65535 allow ip from any to any
    </pre>
    Obviously, you need to add your rule before the blanket deny rule, so enter:
    $ sudo ipfw add 02150 allow tcp from any to any dst-port 7001 in
    Or you could do a rule like:
    $ sudo ipfw add 02005 allow ip from ME to any in
    Where ME is your IP address (or MAC yo:ur:ma:ca:dd:re:ss) to allow all access from your computer. Unwise because both are easily spoofed, but you can delete it as soon as you're done:
    $sudo ipfw delete 02005

  • Change language settings via URL in CRM ISA B2C

    Hi experts,
    I have external product catalog, and I use the following format of URL to access ISA B2C in English:
    http://<server>:<port>/b2c/display/(xcm=B2C_B2CCRMSTANDARD&cpgsize=5&layout=5.1-6_1_56_58_5_8_2&uiarea=2&carea=4B6F49098864241BE10000000ABF0F17&cpgnum=1)/.do?rf=y
    Now I need to access the Spanish version of the site. I know I can do it via this URL, http://<server>:<port>/b2c/b2c/init.do?language=es. However, instead of going to init.do, is there a way to use the format of the first URL and in Spanish flavor? It does not work if I simply append &language=es after the first URL.
    Appreciated if giving out step by step guide. Thanks.

    Hi Andreas,
    try to run the report "rscpinst" in tx se38. Just "ADD" the entry "DE - German" to this table.
    The first entry in this table should be the default value for the Logon Screen.
    Hope it works!
    Regards,
    Christian

  • TS2296 For around 10 days, people cannot access my website on Mac/ipad. Be it safari or any other browser unless they change DNS settings.

    All other access on PC or mobile is FINE, but through Mac or iPad it just doesn't work.
    Nothing has changed behind the scenes, there are no error logs, and everything was previously fine. Has there been some sort of security update recently that could have caused this? How can we rectify something that we have had no notification of?

    Here's a recent update I had from a member of ours...
    Right..here's the latest. It worked while I was abroad, that's on a MacBook Air OSX 10.9.3. What it didn't do was refer the site to my favourites page...I had to type the website into the search every time. Now I'm home it won't work on Safari on the MacBook, but will work on Firefox albeit excruciatingly slowly. (I'm on Sky's ISP at home)
    It still refuses to come up on my Mac PC on either Safari or Chrome. There is just one other website that is also giving problems and that is Sky super 6 that will come up but refuses to let me log on. Oh!...and I don't have any problems getting the site up on my phone which uses the same Sky WiFi as both my Apple tools.
    Hope this helps.

  • Script to change DNS

    Guys,
    We are changing the IP address of one our domain contoller which is also a DNS server. Need a script to change the dns server ip in about 70 servers, script should to change only the old ip address while the other 2 DNS addresses should remain as it
    is.

    You can try
    http://superuser.com/questions/463096/change-dns-with-script
    http://blogs.technet.com/b/heyscriptingguy/archive/2014/01/26/weekend-scripter-modify-dns-settings-via-windows-powershell.aspx
    http://social.technet.microsoft.com/Forums/windowsserver/en-US/ed3f4c9e-1467-4795-b9d1-ae41937b8962/script-to-change-dns-servers-on-remote-server?forum=winserverpowershell
    -Greg

  • Changing camera settings

    Hi experts
    For my special application I want to change some camera
    specific settings for example exposure time, gain and also some
    video settings like contrast, brightness and ... I want to use
    flash media server and flash media encoder, but I don't know how I
    can change the settings mentioned ( I know that the above can be
    easily controlled via DirectShow, but I don't like to use it). I
    have spent lot of time for finding the answer but find almost
    nothing. May you please help me? Even if changing camera settings
    via FMS and FME is not possible, may you please tell me how to
    change them via another program and still capturing via FMS and
    FME?
    Thank you
    H.P.I

    Pardon the pun, but there's something wrong with this picture.
    Photos from iPhone 4s, as was said by others, should have more than sufficient resolution for a simple printed album, if you're using the rear camera and you're importing them at full resolution into iPhoto. Is that what you're doing?
    What size are the photos in the album - no double-page spreads?
    When you check the problem photos in iPhoto, what does it say about it's resolution, file size?

  • Change DNS server settings

    Hi All, When I log into my router I can not find on any of the tabs where to change my DNS sever any ideas?                                                          Thanks Debbie

    Just came across this when looking for a way to change the server settings as I use my Sky Router as a backup measure (i.e. it's set up, ready to go, but for the moment, just serves the internet over one of the Ethernet ports via a better router and wireless network in my house). Anyway, as there doesn't seem to be a way to sort the DNS settings on the router itself, I would suggest the following to those who are looking to use OpenDNS (which is why I'm looking to do it). Disable the Wireless network on your Sky Box and plug in a cable DSL router (i.e. a router that doesn't have ADSL on it, but has an ethernet internet port for connecting to a router - or one that has that ability (some have multiple options to allow for failsafe - but anyway)).  Google "wireless cable DSL router" and look in the shopping section for an idea of them. Setup the new router as per the manufacturers instructions and connect the new router to the Sky Box by the ethernet port.  Now, assuming you've turned off the Wireless on the Sky Router (found under setup on the Sky router interface (192.168.0.1 from your computer normally unless you've changed it)) when you connect up the new router, this should be the only thing that is supplying internet into your home and you should be able to change the DNS settings on the router (make sure of this before you buy it just in case, but most of them you can do) and that way anything that is passed through the new router, even when it heads out on the Sky connection will use the new DNS settings. Ok, so it's a bit of a hassle and might cost you £20-£30, but if it's to use OpenDNS or such services for the protection of your family when browsing online, it's money well spent IMHO. Of course, if Sky had any nouce about them, they would simply give an option to use either their own DNS servers or the OpenDNS servers, even if they don't allow full customisation of them, especially with all the recent news about eSafety for people at home.  It would just make a lot of sense as far as I see. There are some routers out there now which fully intergrate with the OpenDNS service (Google OpenDNS Router to find some examples - a lot of NetGear ones now do - just makes it easier if you're a bit green on the techy front, though OpenDNS offer a lot of assistance and walk throughs on their own site too. 

  • How do I change the DNS settings to BC but keep the MX setting for emails?

    How do I change the DNS settings to Business Catalyst but keep the MX settings for emails?
    I'm basically created anew site using Muse and want to host it on BC and upgraded to the Web basics + to allow for hosting of downloadable pdf's etc.
    There are up to 50+ emails address set up on the current set up and I want to just change the NDS settings for the domain to ponit to the new site/hosting an not have to worry about them chaning all the meail settings etc.
    Records do I need to change in BC?
    Thanks
    Iain

    Hi,
    You shouldn't need to do anything as long as you do not state hosting email with BC.  Just ensure to check you DNS in a lookup tool that it's still referencing your external email service.
    Otherwise you can set up external email set-up if the option is present.
    - http://helpx.adobe.com/business-catalyst/partner/set-email-external-email-provider.html
    Kind regards,
    -Sidney

  • DNS Settings have Changed with Snow Leopard Update

    Before I upgraded to SL, I was able to append a DNS server to the list of servers that my MacBook Pro acquired from the DHCP server. This way, I didn't have to manually edit my DNS settings all the time when I was in the office and wanted to access our lab network by name. Now after the upgrade, I have to remove all manually entered DNS servers before it will use the DNS servers given to it by the DHCP server. Is there a way that I can always append my lab DNS server to the list given to me by DHCP?
    Thanks,
    John

    I am on or office wireless network which handles the DHCP lease and DNS addressing, but I am an engineer in the office and access the lab often and we have another DNS server in the lab to handle all of the lab network. The Sales folk don't need access to the lab so the DHCP server doesn't give out the lab dns server... I would like to access the lab via name, not IP, so I need the lab DNS server on my list of servers. If I can't append this to the DHCP list, I have to manually add all three every time I am in the office. I am frequently out at customer/vendor sites and use thier wireless, so I get thier DNS list.
    Short answer is I need our lab DNS server on the list and frequently move from network to network... I want it to work the way it was before the "upgrade", which wasn't much of an "upgrade" if it breaks this. I want my Leopard back.
    John

Maybe you are looking for

  • SAP BO

    Please provide Answers for  below BO questions................. 1)To help Business users find the information they need, objects should be clearly named and defined using business terminology and organized into which of the following? a) Dimensions  

  • Can't email files with spaces in the file name since 10.5.2 upgrade

    Not sure if this is a bug with Leopard or I'm being stupid (possibly the later) but... Has anyone else experienced this issue and do you know what is causing it? I am currently unable to send a file that has a space in the file name. The only change

  • Validation for saving values in jsp--is validation compulsory?

    Hi all, in my application there is a jsp which uses a pagebean. now i added somemore attributes to the pagebean and included them in the jsp as well. there is javascript validation for the previous attributes. the values can be modified and should be

  • Can't preview the video clips I've imported - I only get sound

    I've imported some .avi video clips from an external network drive into iMovie which I am using locally. When I try to play the clips in the preview window, all I see is a white screen. The sound is fine. I set up the project as MPEG-4, in PAL format

  • Master collection for K12  500 license pack - installation error

    Dear All, our client has a problem with his license installation. He bought a Master collection for K12  500 license pack. He were made an „msi" package with Adobe Application Manager Enterprise Edition application, because he didn't want to activate